Results 1 to 3 of 3

Thread: render event after render

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2010
    Location
    Vancouver, BC
    Posts
    224
    Vote Rating
    1
      0  

    Default render event after render

    It is bit odd one, but anyways. In a grid panel, I am customizing column by doing renderer as below.

    I want to add event listener for those checkbox below, but I can't seem to do it other than doing an inline onclick, or onchange since dom is not generated yet.

    Is there any callback that ensures all the rows are rendered in dom ?

    Code:
    columns:
     [
       {
         dataIndex:"value",
         renderer:function(value, metaData, record, rowInde, colIndex, store)
          {
              return "<input type=\"checkbox\" value=\" + value \">";
           }
       }
     ]

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Code:
    grid.on({
        element : 'el',
        delegate : 'input',
        click : function(e, t) {}
    });
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    167
    Vote Rating
    11
      0  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •