Unplanned
Last Updated: 08 Dec 2020 07:56 by ADMIN
Ali
Created on: 14 Nov 2019 09:21
Category: Grid
Type: Feature Request
10
Expand / open / collapse hierarchy programmatically

Hi

I have a question regarding the telerik grid component particularly the hierarchy. Is it possible to open a hierarchy programmatically? For example:

I have my grid with information. Every row have more information to show. Those are stored in a hierarchy level to this row. Can I, instead of clicking the '+'-button in the row, just open it with with a method that i call e.g. in another button?

I want to make the rows clickable, i saw in the forum that this isn't yet supported for the grid. Now, I'm placing a div-Tag in the DetailTemplate of this row, and give that div a onclick-Attribute. The method the div invokes, should open the row for me respectively show the hierarchy of this row.

Is this possible?

thanks for your support.

regards

Ali Shala

3 comments
ADMIN
Marin Bratanov
Posted on: 08 Dec 2020 07:56

Hi all,

This may land as an ExpandedItems<TItem> collection in the grid state, feel free to Vote for and Follow this here: https://feedback.telerik.com/blazor/1497361-expanded-items-in-the-grid-state. If you think there is a better way, feel free to comment either here or there.

 

Regards,
Marin Bratanov
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/.

ADMIN
Marin Bratanov
Posted on: 24 May 2020 11:24

An update to this - the grid state lets you expand or collapse detail templates programmatically (link), so you could look at the current page of data, check the models and update the grid state as needed.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
ADMIN
Marin Bratanov
Posted on: 14 Nov 2019 09:32

Hello Ali,

At the moment the approach with a row template where you handle the click and expanded state is the only option. A similar example is available in this blog post (see the "Master-Detail View" section).

I moved this thread to the public Feedback portal so you can Follow the status of such a feature. Here's a link for you: https://feedback.telerik.com/blazor/1442162-expand-open-collapse-hierarchy-programmatically.

You may also find this feature request interesting: https://feedback.telerik.com/blazor/1430980-conditionally-hide-hierarchical-grid-expand-button.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor