content inside rowexpander template won't update

Page 2 of 2 FirstFirst 12
  1. #11

    RE: content inside rowexpander template won't update

    ok, but isn't there any way i can update the row expander content from the rowExpander rowExpanded listener?

    same as in the coolite examples explorer -> GridPanel -> Plugins -> RowExpander Remote

    im doing this but is now working

    
    expandedRow = rowIndex; 
    var row = expander.grid.view.getRow(rowIndex);
    var body = Ext.DomQuery.selectNode('tr div.x-grid3-row-body', row);
    body.innerHTML = "<p>About this Question:" + record.get("description") + "</p>";
  2. #12

    RE: content inside rowexpander template won't update

    this is really weird

    if i do this code

    expandedRow = rowIndex;
    var row = expander.grid.view.getRow(rowIndex);
    var body = Ext.DomQuery.selectNode('tr div.x-grid3-row-body', row);
    Ext.fly(body).update("<p>About this Question:" + record.get("description") + "</p>");
    alert(body.innerHTML); <-- it shows here that the body.innerHTML is already updated but it is not reflecting on the grid

  3. #13

    RE: content inside rowexpander template won't update


    i've tried using this code in the examples explorer rowExpander remote example

    this line does the trick for me

    expander.bodyContent[record.get("qid_aid")] = "<p>About 
    this Question:" + record.get("description") + "</p>";
    my question is why is it that in the rowExpander remote example below that line there is also this line which i think does the same thing but is not working

    Ext.fly(body).innerHTML = "<p>About this Question:" + record.get("description") + "</p>";
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 0
    Last Post: Oct 19, 2010, 7:39 AM
  2. [CLOSED] [1.0] GridPanel RowExpander Template
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 13, 2010, 8:36 AM
  3. Replies: 2
    Last Post: Sep 23, 2009, 5:49 PM
  4. [CLOSED] grid rowexpander template
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 10, 2009, 2:01 AM
  5. Replies: 5
    Last Post: Apr 28, 2009, 8:43 PM

Posting Permissions