Hierarchy grid with checkbox

1 Answer 110 Views
Checkbox Grid
seenu
Top achievements
Rank 2
Iron
Iron
Iron
seenu asked on 08 Oct 2021, 10:25 AM

Hi,

I am implementing grid with hierarchy view, using example below

https://www.telerik.com/kendo-react-ui/components/grid/rows/hierarchy/

but i added checkbox in the child grid where we need to select on header all the child checkbox should be selected. all works fine, but when i expand multiple childs, other child's checkbox is unchecking.

for example. i have grid with 5 rows. each rows has expand button(+) when i expand first row and check on header checkbox all child in 1st row is selected. when i expand 2nd row and do header checkbox, all the 1'st rows child is getting uncheck.

not sure how to handle this. is there any specific example or guidence?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 Oct 2021, 11:56 AM

Hello, Seenu,

Thank you for the details.

In general, the information of the selected items is part of the state, the Grid is not internally changing the selected rows. This means that if the items were being deselected, the information in the state is changed.

If you share an example of this, I will be happy to take a look and check what could be causing this.

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/.

seenu
Top achievements
Rank 2
Iron
Iron
Iron
commented on 12 Oct 2021, 12:53 PM

Hi Stefan,

Sorry for late reply. i am trying to create sample and i face challenges.

basically i am trying to achieve hierarchy view using  https://www.telerik.com/kendo-react-ui/components/grid/rows/hierarchy/

and checkbox selection on the expanded grid using https://www.telerik.com/kendo-react-ui/components/grid/selection/

i would appropriate your help if you could help on merging those two sample. 

Stefan
Telerik team
commented on 12 Oct 2021, 01:03 PM

Hello, Seenu,

We can assist with making this, but the point of the example is to recreate the current setup in the real application. This is needed in order to inspect what could be causing this in the real setup.

If there is a specific issue making the example, please share the current stage and we will check it.

seenu
Top achievements
Rank 2
Iron
Iron
Iron
commented on 14 Oct 2021, 06:18 PM

Sure Stefan, i will work on that and share you the sample.
Tags
Checkbox Grid
Asked by
seenu
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Stefan
Telerik team
Share this question
or