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

RetainExpandStateOnRebind expands always row index and not Id

1 Answer 185 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rugydp
Top achievements
Rank 1
rugydp asked on 30 Mar 2017, 03:02 PM

Hi

I have a hierarchical grid with RetainExpandStateOnRebind="true" and allow sorting activated for some columns.

Problem:

On sorting the wrong DetailTable is expanded: always the same index of the MasterTable and not the Id.

Anyone knows a solution without having to post code? It's a huge grid with a lot of code...

Thanks!

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 04 Apr 2017, 10:59 AM
Hello,

You have two options in this case:

1. Collapse all items when Sorting is performed.

2. Remove the RetainExpandStateOnRebind and implement a custom solution using a global variable to keep the Unique IDs of the master rows.

Regards,
Eyup
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
rugydp
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or