PDA

View Full Version : grid show/hide problem



proofmoore
17 Dec 2010, 12:31 PM
after I hide one of the yolKknoGrid,yolTurGrid "grids", panels starts to show a blank grid also with the bar and buttons blank. yolKknoGrid and yolTurGrid are very smilar grids with different id and store names. before this I tried to add/romove them but removing one of the grids did the same result with hiding. now I dont know what to do and need help.

south_panel = new Ext.Panel({
id: 'south_panel',
region: 'south',
items:[yolKknoGrid,yolTurGrid],
.....
});

//combo1
select: function(combo,record){

yolKknoGrid.getStore().setBaseParam('ilce', selected_ilce);
yolKknoGrid.getStore().setBaseParam('kkno', record.data.kkno);
yolTurGrid.hide();
yolKknoGrid.getStore().load();
yolKknoGrid.getView().refresh();
yolKknoGrid.show();
south_panel.doLayout();
}

//combo2
select: function(combo,record){
tip = record.data.secim;
yolTurGrid.getStore().setBaseParam('ilce', selected_ilcee);
yolTurGrid.getStore().setBaseParam('tur', tip);
yolKknoGrid.hide();
yolTurGrid.getStore().load();
yolTurGrid.getView().refresh();
yolTurGrid.show();
south_panel.doLayout();
}