Results 1 to 3 of 3

Thread: RowExpander plugin behavior

  1. #1
    Sencha User
    Join Date
    May 2017
    Posts
    68

    Default Answered: RowExpander plugin behavior

    Hi,

    I was playing with the RowExpander plugin and noticed that the template for the body is processed when the grid renders itself, not when I click on the expand button. Our use case is to retrieve data from a backend when user expands a row and then populate the UI of the body. So we would have a React component that would do it in its componentDidMount lifecycle method. I do not see how such a scenario could be implemented based on the current implementation of this feature and I could not find anything related to it in the docs. Basically, I'm looking for a way to delay of the template rendering until the row is expanded. And I would also expect an option to unmount the component once the row collapses.

    Please let me know if you have a recipe.

    Thank you,
    Yuri

  2. There isn't a clean way to do it at the moment. We've put this in our backlog for 6.5.2.

    That said, here's a somewhat unclean way to do it:

    https://fiddle.sencha.com/?extreact#...or&fiddle/1vu7

  3. #2
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114

    Default

    There isn't a clean way to do it at the moment. We've put this in our backlog for 6.5.2.

    That said, here's a somewhat unclean way to do it:

    https://fiddle.sencha.com/?extreact#...or&fiddle/1vu7

  4. #3
    Sencha User
    Join Date
    May 2017
    Posts
    68

    Default

    Thank you!

Similar Threads

  1. [FIXED] Grid RowExpander plugin breaks RowEditor plugin
    By craig2005 in forum Ext 5: Bugs
    Replies: 1
    Last Post: 17 Jun 2014, 2:18 PM
  2. Replies: 5
    Last Post: 18 Mar 2014, 3:52 AM
  3. [FIXED] New bug in RowExpander plugin
    By pwuk in forum Ext:Bugs
    Replies: 2
    Last Post: 5 Aug 2011, 3:47 PM
  4. RowExpander plugin
    By dno in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 22 Jun 2011, 2:25 AM
  5. Help on strange behavior on RowExpander
    By rcglaser in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 24 Jul 2008, 3:17 PM

Posting Permissions

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