PDA

View Full Version : renderer getting called twice



rojar
7 Dec 2009, 9:57 AM
Hi,

I am dynamically adding a gridPanel to a window's body.
Firstly I create a grid load its data store and then I add the created grid to window's panel.
I am using renderer for one of the column(displaying input type radio). This renderer is getting called twice once I load data store and second time when I add grid to panel and call doLayout.



panel.add(grid);
panel.doLayout();


How can I make sure that renderer is invoked only once for each row.

Thanks

rojar
8 Dec 2009, 2:36 AM
Any update on this.

Which event I should register so that I can check uncheck radio html controls displayed in grid's column based on some preferences.
If I check them after data store load. then later at time of

panel.add(grid);
panel.doLayout();

Grid data reloads resulting in undo of radio's checked status.