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

[Solved] master-detail with Stored Procs

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
S
Top achievements
Rank 1
S asked on 25 Jun 2009, 10:29 PM
Hi Gurus,
I am implementing a master-child relationship using the example at:
as my guiding-shining light.

The example retrieves the child data using a sql statement in the aspx page itself. We try to keep all our
data access restricted to the Data layer. Therefor we have a stored procedure to fetch that data
for the child table. But I am unsure as to how to hook up the child grid to the stored proc in our data access layer ...

Any pointers?

Ok .. i think I found the answer here:

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 01 Jul 2009, 05:46 AM
Hi S,

In such a setup, you can use the NeedDataSource event handler, to populate the controls with data. Whenever the selection changes in the first grid, you can rebind the related grid(s). This would raise their NeedDataSource event handlers, giving you a chance to extract specific data from the underlying datasource.
I hope this suggestion helps.

Regards,
Yavor
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
S
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or