1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    18
    Vote Rating
    0
    andyts93 is on a distinguished road

      0  

    Default Unanswered: Grid + RowExpander: Expand one row at time

    Unanswered: 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
    Touch Premium Member
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    311
    Answers
    59
    Vote Rating
    51
    droessner is a jewel in the rough droessner is a jewel in the rough droessner is a jewel in the rough

      0  

    Default


    Try

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

  3. #3
    Sencha User
    Join Date
    Mar 2013
    Posts
    18
    Vote Rating
    0
    andyts93 is on a distinguished road

      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

Thread Participants: 1

Tags for this Thread