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

[Solved] question about nestedviewtemplate sample

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Asti
Top achievements
Rank 1
Asti asked on 22 Jul 2009, 04:35 PM
hello I've started look into nestedviewtemplates and have a couple of question

1. http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx in this sample, the sales grid consists of a detailview table. the sqldatasource has a sessionparameter. Now i Assume that the parenttablerelationship-settings do put the correct value inside there and that it should be asp:Parameter instead - because i cannot see where the session parameter is set.

2. My other question is how to achieve what is done in the nestedview sample programmatically?  Using the sqldatasources and binding to the hidden Label to use as ID and then use controlparameter seems pretty okay. But what if there's a scenario where i cannot use the parameterized datasources? I looked into the documentation and found the OnDetailTableDataBind event which i have successfully used to fetch data and bind it to detailtables, but how can it be done in nestedviewtemplates?

i haven't tested the sample extensively but i suppose the fact that nestedviewtemplate consists of tabstrips, detailviews etc adds to the complexity of databinding programmatically?

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 27 Jul 2009, 03:32 PM
Hi Asti,

Thank you for your interest in our products.

You can also use asp:Parameter instead of asp:SessionParameter.
For additional information on declarative relations and programmatic data-binding of hierarchical RadGrid I recommend you to look at the Hierarchical data-binding using declarative relations and the Hierarchical data-binding using DetailTableDataBind event help topics.

I hope this information
is helpful to you. Please do not hesitate to contact us on any further issues.

Greetings,
Mira
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Asti
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or