PDA

View Full Version : How to set grideditorpanel view dynamically



carrier24sg
17 Aug 2009, 11:02 AM
hi guys,

Im new to extjs. I looked around and couldn't find any solutions. How do i set a grid's view to a default groupingview dynamically.

ive tried


gridpanel1.view = new Ext.grid.GroupingView();

but it would not work. Would appreciate some help! thanks!

carrier24sg
17 Aug 2009, 3:28 PM
erm anyone??

17 Aug 2009, 5:16 PM
you can't.

You cannot just set a property and expect the view to change. You would need to essentially destroy the view and reconfigure it. I imagine an extension or plugin to the gridpanel will be required.

carrier24sg
17 Aug 2009, 5:39 PM
hey, thanks!

Any idea how i can start, or any references around?