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

Row selection highlight not working when grouped

3 Answers 11 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vikram
Top achievements
Rank 1
Veteran
Vikram asked on 18 Sep 2020, 12:35 PM

Hi,

 

https://stackblitz.com/edit/react-gmfcy6-5rknaj

In above example I'm using grouping and row selection as well.
Issue is: row selection is not working when grouped. IF you remove grouping `unit in stock` and click on any row it will immediately highlight selected row.

 

Thanks
Vikram E.

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 22 Sep 2020, 07:20 AM

Hello, Vikram,

We have a GitHub discussion logged for this.

We also made an example showcasing how it can be done with the current version:

https://github.com/telerik/kendo-react/issues/500 (the example from Ina)

I hope this is helpful.

Regards,
Stefan
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

0
Vikram
Top achievements
Rank 1
Veteran
answered on 23 Sep 2020, 07:28 AM

Hi Stefan,

Seems like you've misunderstood. I'm not worried about persistence.
My Issue is with row selection (onClick of a row) highlight with is not working when grouped.

When not grouped, OnClick of a row I'm selecting a row (& highlighting it);
This row selection and highlighting isn't working when any column is grouped.

0
Stefan
Telerik team
answered on 23 Sep 2020, 11:15 AM

Hello, Vikram,

The issue is ultimately the same.

When the records are grouped, the data collection is completely new (new reference), which means that the selected field gets removed during the grouping process.

This is why we have to use the approach shown in the GitHub issue to re-apply the selection state to the records after the data is processed.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Vikram
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Vikram
Top achievements
Rank 1
Veteran
Share this question
or