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

Hierarchical grids with Class based data source

4 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 2
Andy Green asked on 13 Dec 2008, 08:03 PM

Hi All

I've a VB class for all my data access, and everything works great with RadGrids, but.....

How to I tie data to a nested level table in the grid. The only examples I can find use the SQL Data Source, I have classes.

Can you point me to any samples.

Andy

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Dec 2008, 05:32 AM
Hi Andy,

Here is an online demo which shows how to bind RadGrid sub objects. You can use a similar approach to bind data source to hierarchical Grid as well.
Binding to SubObjects

Shinu
0
Andy Green
Top achievements
Rank 2
answered on 22 Dec 2008, 11:14 AM
Thanks Shinu

I've moved this forward by using the needdatasource and it works if I call my data routine with a fixed value, what I cant seem to get is the row value from the master grid to pass as the param, any examples of this.

By the way I've got this all working fine with sqlDatasources, I would like to get it working form code behind.

Andy
0
Accepted
Sebastian
Telerik team
answered on 22 Dec 2008, 11:17 AM
Hi Andy,

To bind your detail tables to data from the code-behind, consider intercepting the DetailTableDataBind event of the grid as illustrated in this online demo of the product:

http://demos.telerik.com/aspnet-ajax/Grid/Examples/Programming/DetailTableDataBind/DefaultCS.aspx

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andy Green
Top achievements
Rank 2
answered on 23 Dec 2008, 08:58 AM
Thanks - this was what I was looking for.
ANdy
Tags
Grid
Asked by
Andy Green
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Andy Green
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or