Results 1 to 3 of 3

Thread: Grid + RowExpander: Expand one row at time

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    38
    Answers
    1
    Vote Rating
    1
      0  

    Default Grid + RowExpander: Expand one row at time

    Hi, I'm using RowExpander plugin and I want to expand one row at time, so when I click on a row all the other must collapse. I read this topic but beforeexpand event doesn't fire
    I tried this:
    Code:
    resultGrid.view.on('beforeexpand', function(expander, record, body, rowIndex){
        alert("OK");
    });
    And this:
    Code:
    resultGrid.on('beforeexpand', function(expander, record, body, rowIndex){
        alert("OK");
    });

  2. #2
    Sencha Premium User
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    316
    Answers
    59
    Vote Rating
    59
      0  

    Default

    Try

    Code:
    resultGrid.view.on('expandbody', function(rowNode, record, expandRow, eOpts){
        alert("OK");
    });

  3. #3
    Sencha User
    Join Date
    Mar 2013
    Posts
    38
    Answers
    1
    Vote Rating
    1
      0  

    Default

    expandbody works but if I want to collapse all the rows before expand one of them I have to use a sort of beforeexpand?, right?

    EDIT:
    I found this useful addon
    Last edited by andyts93; 6 May 2013 at 11:26 PM. Reason: Problem resolved

Tags for this Thread

Posting Permissions

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