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

Grid hiding detail when detail edited

5 Answers 9 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nicholas
Top achievements
Rank 1
Nicholas asked on 21 Nov 2018, 06:22 PM

I am using a set of nested grids, using the detail system, and using one object. 

Object example:

{

Property 1

Property 2

Children{

     object{

          property 1

 

     }

      }

}

5 Answers, 1 is accepted

Sort by
0
Nicholas
Top achievements
Rank 1
answered on 21 Nov 2018, 06:26 PM

I

 

I am using a set of nested grids, using the detail system, and using one object. 
Object example:
{
Property 1
Property 2
Children{
            object{

            property 1

            property 2

            }
      }
}

This works well to display, with the inner grid displaying the children, and the outer grid showing a list of the top level objects.

The issue is that when I edit a row in the nested grid, on the child element, it minimizes the grid, probably something to do with rebinding the data source, since it is using the same data item. Is there any way to prevent this automatic closing of the detail?

 

0
Nicholas
Top achievements
Rank 1
answered on 21 Nov 2018, 06:27 PM
Sorry about the double post, I attempted to use tab to add indentation, and it skipped to post this reply, and space triggered it. 
0
Viktor Tachev
Telerik team
answered on 23 Nov 2018, 09:11 AM
Hello Nicholas,

In order to persist the expanded items in the Grid after refreshing the widget I would suggest using the approach described in the how-to article below:



Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Nicholas
Top achievements
Rank 1
answered on 05 Dec 2018, 04:11 PM
I ended up setting the grid to inline editing, and disabling/enabling the nested elements based on the row being edited. This fixed the minimizing issues, and made it very simple to do detailed editing. 
0
Viktor Tachev
Telerik team
answered on 07 Dec 2018, 11:09 AM
Hello Nicholas,

I am glad that you have the functionality working. Thank you for sharing your approach with the community.


Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Nicholas
Top achievements
Rank 1
Answers by
Nicholas
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or