Rendering an ExtJs button in a GridPanel column

  1. #1

    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)??

  2. #2

    RE: Rendering an ExtJs button in a GridPanel column

    Any help would be greatly appreciated??
  3. #3

    RE: Rendering an ExtJs button in a GridPanel column

    Hi,

    It is little bit tricky but possible.


    0.8 version has CommandColumn.*
    CommandColumn is column with embedded toolbar.


    So, after release (which will be soon) you can investigate how CommandColumn is implemented and make own plugin for adding ExtJS button
  4. #4

    RE: Rendering an ExtJs button in a GridPanel column

    Hi vladimir, thanx for replying. I would wait for the 0.8 release.

Similar Threads

  1. [CLOSED] Server side custom GridPanel Column rendering
    By FAS in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 24, 2012, 2:45 PM
  2. Replies: 0
    Last Post: Sep 13, 2011, 3:25 PM
  3. Replies: 8
    Last Post: Dec 10, 2010, 9:21 AM
  4. [CLOSED] Gridpanel second Column data Rendering a Jiberish
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 01, 2010, 5:35 PM

Posting Permissions