PDA

View Full Version : do I need to explicitely rerender grid



rojar
28 Jan 2008, 4:28 AM
Hi,

I am using Ext2.0 and displaying my my products info Grid panel. When using gridPanel like


grid = new Ext.grid.GridPanel({
store: dataStore,
cm: columnModel,
sm: createSelectionModel(),
border: false
renderTo: 'center-div'
});


do I ever need to render the grid explicitely when I reconfigure gridPanel.

In general after creating grid when should one explicitly rerender the grid.

like
grid.render()

thanks:)

Condor
28 Jan 2008, 4:32 AM
Almost never.

When you want to update the data use store.load(), store.add() etc.
When you want to change the store or the column model use grid.reconfigure().