This is a migrated thread and some comments may be shown as answers.

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

3 Answers 296 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 01 Jul 2018, 09:54 PM

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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 03 Jul 2018, 10:39 AM
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.
0
John
Top achievements
Rank 1
answered on 04 Jul 2018, 12:48 AM
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?
0
John
Top achievements
Rank 1
answered on 04 Jul 2018, 10:20 PM
Hi Viktor,
I got it figured out.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
John
Top achievements
Rank 1
Share this question
or