May 04, 2009, 1:52 AM
Rendering an ExtJs button in a GridPanel column
I am trying to get an ExtJs button inside a GridPanel column. I am using a Renderer to do this.
I could not succeed in doing so cleanly, because I need to return Html from the rendering function. I created an Ext Button, but could not get my hands on its Html without rendering it inside a Container. So, what I did was to return a code from the rendering function, and set a timeout to another function which created & rendered the button in this div.
So, it poses a basic question as to how to get an Ext element's Html without actually getting it rendered (applyToMarkup, render etc. all need a valid DOM element to be passed, to which the Ext element is actually rendered)??
I could not succeed in doing so cleanly, because I need to return Html from the rendering function. I created an Ext Button, but could not get my hands on its Html without rendering it inside a Container. So, what I did was to return a code from the rendering function, and set a timeout to another function which created & rendered the button in this div.
So, it poses a basic question as to how to get an Ext element's Html without actually getting it rendered (applyToMarkup, render etc. all need a valid DOM element to be passed, to which the Ext element is actually rendered)??