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

Groups collapsed

5 Answers 355 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Veteran
Rick asked on 23 Oct 2019, 04:05 PM
I am pretty sure i can just write a JavaScript function to go back and find/collapse all the groups in the grid but is there a grid setting where I can just collapse them by default?

5 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 Oct 2019, 06:13 AM

Hello Rick,

At the moment programmatic control over grouping is not implemented yet, you can track it here (I added your Vote and feedback): https://feedback.telerik.com/blazor/1432800-set-grouping-from-code.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
Rick
Top achievements
Rank 1
Veteran
answered on 24 Oct 2019, 01:57 PM
Is there a way that I can assign the id to the grid so that I can assign an id to the grid so that I can possibly manipulate it using jQuery?
0
Marin Bratanov
Telerik team
answered on 24 Oct 2019, 02:12 PM

Hello Rick,

It is not possible, at least at the moment. Manipulating components with JS is not the Blazor way and if you want to do that, I suggest you wrap the grid in an element you can uniquely identify and traverse the DOM through that instead. Or, just use the .k-grid class the grid wrapping element has (you could add a custom Class too).

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
Rick
Top achievements
Rank 1
Veteran
answered on 24 Oct 2019, 02:20 PM

I was going to port a mvc app I have to blazor but maybe I will just wait until you have the group manipulations in.

I need it to do like attached.

 

0
Marin Bratanov
Telerik team
answered on 24 Oct 2019, 04:18 PM

Hello Rick,

Right now, the Blazor grid does not offer this much API and flexibility, it's still under a year old and has some catching up to do.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Tags
Grid
Asked by
Rick
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Rick
Top achievements
Rank 1
Veteran
Share this question
or