PDA

View Full Version : bindStore() second time doesn't working!



eyo
20 Sep 2014, 2:41 AM
Hey all,

I've two grids and one tree. When I click to tree's last node, first grid filling. Then when I clicked a row from first grid, filling the second grid. First time everything works great. But second time i'm selecting a node from grid, bindStore() doesn't work and it gives "a is undefined" from firebug. How can I unbind store or is there any different solutions?



gridSelect : function ( rowModel , record , index ) {
this.getSecondGrid().getView().bindStore( store.getAt(0).rooms().getAt(index).prices() );
} ,


treeItemSelect : function ( ) {
myStore.on( 'load' , function ( store , records , successful , eOpts ) {
if ( successful ) {
this.getRoomGrid().getView().bindStore( store.getAt(0).rooms() );
}
} );
}

eyo
21 Sep 2014, 11:20 PM
Any ideas?