Detail row keeps collapsing when adding a new row to the grid

4 posts, 1 answers
  1. John
    John avatar
    4 posts
    Member since:
    Jun 2018

    Posted 01 Jul 2018 Link to this post

    I have a grid, which uses detailInit, inside the detail row I have a grid with a toolbar template with an Add and Delete button. When I click the Add button to add a new row to the grid, the new row gets added but the detail row collapses.

    How can stop that from happening?

  2. Answer
    Viktor Tachev
    Admin
    Viktor Tachev avatar
    2497 posts

    Posted 03 Jul 2018 Link to this post

    Hi John,

    In order to keep the items in the Grid expanded after it is refreshed I would suggest using the approach described in the article below:


    Give it a try and let me know how it works for you.


    Regards,
    Viktor Tachev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. John
    John avatar
    4 posts
    Member since:
    Jun 2018

    Posted 03 Jul 2018 in reply to Viktor Tachev Link to this post

    Hi Viktor,
    Thanks that did help, it stopped the detail row from collapsing on adding a new row, but something else arose as well, When I am done editing a row, IE changing an Area Name to something else, and move out of the edit the detail row collapses again. I am using inline editing but not using edit buttons. 
    Is there a way to keep a detail row open until another detail row gets open or closing the active detail row?
  4. John
    John avatar
    4 posts
    Member since:
    Jun 2018

    Posted 04 Jul 2018 in reply to Viktor Tachev Link to this post

    Hi Viktor,
    I got it figured out.
Back to Top