[root@testserver root]# source .bash_profile
Posted by 저기요씨

handler : function() {
          gridStore.loadData(myData);
        }



gridStore는 store 이름
myData는 실제 데이터

Posted by 저기요씨

  var document_uploadpanel = new Ext.Window({
     id: 'document_uploadpanel',
     width : 450,
     height : 300,
     autoheight: true,
     closeAction:'hide',
     frame : true,
     items :  grid
  });
    store.load({});
// 윈도우를 그리고 난 후


{xtype: 'button', text: '문서첨부', width: 50, x: 745, y: 5,
       handler: function(){
              document_uploadpanel.show();
       }              
 }
// 버튼 클릭시 위의 윈도우를 호출


하지만 버튼을 처음 눌르고 닫을 시에는 윈도우 창이 제대로 작동하지만 닫은 윈도우를 다시 열기위해  버튼을 누르면
dom undefine 에러가 발생한다. 윈도우 창을 만들 시에는 closeAction:'hide' 옵션을 넣어 주어야한다.

'머리아파 > 혼자 공부하는 Extjs' 카테고리의 다른 글

textfield click 이벤트  (0) 2011.07.15
extjs grid refresh  (0) 2011.05.17
한글 전송 시 깨지지 않도록  (0) 2011.04.26
grid의 Column명 가져오기  (0) 2011.04.18
tree의 root node 열어 놓기  (0) 2011.04.14
Posted by 저기요씨