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

Help with Hierarchy in RadGrid

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eli
Top achievements
Rank 2
Eli asked on 17 Mar 2019, 04:45 PM

I have an ASP.NET Web Forms project i am working with and need some help with my grid.

I have a pretty basic grid on my page. i am able to populate it mostly.

i use codebehind to bind a list to it from c#.

 

I need to figure out how to perform this,

I have the proper data in my list to be bound to the grid. i want to have my rows show some important data to my customer, but when he expands the row the data in the expansion is more data from the same list, for that row.

so when a user is browsing the grid, they can click on any row and it does its thing, but if they click the expander icon they get a bit more data about the row.

 

I hope i explained this well, im about to break out mspaint and draw it up...

1 Answer, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 20 Mar 2019, 08:01 AM
Hello Elisha,

You can use the programmatic binding provided by RadGrid to achieve this requirement:
https://www.telerik.com/support/kb/aspnet-ajax/grid/details/how-to-bind-radgrid-properly-on-server-side

Here you can find a live sample:
https://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/programmatic-hierarchy/defaultcs.aspx

Specifically, check the RadGrid1_DetailTableDataBind event handler to get the unique ID of the parent item so you can filter your inner table view data.

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Eli
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Share this question
or