sanraj
6 Mar 2009, 7:51 AM
Hi,
In my application at one place I open one window which contain paging toolbar to show images in dataview.
I want to disable this paging toolbar When I open another child window in that window.
I have created child window using following config...
constrain: true,
modal: true,
constrainHeader: true,
draggable: false,
stateful:false,
renderTo: mainWindow.body,
Currently I am using following to enable/disable toolbar
,
listeners:{
show:function(){
mainWindow.getBottomToolbar().disable();
},
close:function(){
mainWindow.getBottomToolbar().enable();
}
}
But when the pagingtoolbar enables all buttons gen enabled even thugh there is one
record for dataview.
So can anyone tell me how can I maintain state between enable/disable?
Thanks in adv...........
In my application at one place I open one window which contain paging toolbar to show images in dataview.
I want to disable this paging toolbar When I open another child window in that window.
I have created child window using following config...
constrain: true,
modal: true,
constrainHeader: true,
draggable: false,
stateful:false,
renderTo: mainWindow.body,
Currently I am using following to enable/disable toolbar
,
listeners:{
show:function(){
mainWindow.getBottomToolbar().disable();
},
close:function(){
mainWindow.getBottomToolbar().enable();
}
}
But when the pagingtoolbar enables all buttons gen enabled even thugh there is one
record for dataview.
So can anyone tell me how can I maintain state between enable/disable?
Thanks in adv...........