Reconfiguring Grid Columns In Extjs4 - Selmodel Disappears?
I am defining a grid which has a selModel. Each time the store loads, the grids columns are dynamically reconfigured using the grids Reconfigure method. However when I do this the
Solution 1:
It's a bug which is reported in Extjs version [4.0.2]. Now, it has resolved in Extjs version [4.0.7].
Solution 2:
From the 3.3.1 API docs (my emphasis):
Reconfigures the grid to use a different Store and Column Model and fires the 'reconfigure' event. The View will be bound to the new objects and refreshed. Be aware that upon reconfiguring a GridPanel, certain existing settings may become invalidated. For example the configured autoExpandColumn may no longer exist in the new ColumnModel. Also, an existing PagingToolbar will still be bound to the old Store, and will need rebinding. Any plugins might also need reconfiguring with the new data.
I believe you just need to re-set the SelectionModel after you reconfigure your grid.
Post a Comment for "Reconfiguring Grid Columns In Extjs4 - Selmodel Disappears?"