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

dynamic Hierarchy with DetailTableDataBind event

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 24 Oct 2008, 08:29 PM
i want to create a dynamic report  that has the same Hierarchy with DetailTableDataBind event format but with different data. using store procedure to get the datas, how do i specify the mastertableview,detailview and column, and how do i do all of this in the server side. Plus how do i export all data on this to excel.

so if i have table call student
name     address      shoes         shirt     zip  city state size

i want name to be master,address to be detail, shoes to be detail again

so if a user select a report call student it will get the above info and generate a Hierarchy with DetailTableDataBind event with the above info.

if a user select grade report, it will select info from grade table
level     class      test      number
and level will be master, class will be detailtable.

and so on. could i do all this on server side and i want to be able to say e.detailtableview.datasource = "exec storedprocedure ......"

thank you very much for your help . i really appreciate it.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 28 Oct 2008, 09:54 AM
Hello Duy,

In order to achieve this functionality I suggest you to examine the following help articles and demos:

Hierarchical data-binding using DetailTableDataBind event
Hierarchy with DetailTableDataBind event demo

RadGrid Programmatic creation
RadGrid Programmatic creation - On PageInit demo
RadGrid Programmatic creation - On PageLoad demo
Creating hierarchy programmatically demo

Let us know if you face any specific difficulties.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
appdev
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or