I am using a grid and added one button at the last column. My purpose for this button is to allow user to open another window after clicking on this button. However, when ido a search grid or reset my grid to display all rows, i will see a duplicate button being rendered. Under the address column, i should only see one manage button.

Any thoughts on how i can check if the button has been created and stop the renderer from creating again?

take a look at
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.column.Action

and how it got implemented.

shaoen01

22 Nov 2011, 4:25 AM

take a look at
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.column.Action (http://docs.sencha.com/ext-js/4-0/#%21/api/Ext.grid.column.Action)

and how it got implemented.

Hi Tobiu,

I looked through your link, but don't quite get what you are trying to point out to me. The above scenario only happens when i try to do a search on the grid and the button gets rendered again. If the grid is on the 1st load, it has no problem.

Maybe you could fill me in a bit more on what i should be looking out for? Thanks

shaoen01

22 Nov 2011, 4:45 AM

So i added the Ext.id() method and it seems to have worked. Anyone knows why i do not see any duplicate button being rendered after i used Ext.id()?