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

Binding to a RIA Services stored procedure result set

1 Answer 153 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 29 Oct 2009, 06:08 PM
I know Telerik controls can bind to domain services exposed through RIA, but all the examples bind to a table or a view entity.  I can't figure out how to bind a RadGridView to a resultset in a stored procedure through domain services.  I just get one sentence irrelevant responses on the MS Silverlight forums.  I get much more thoughtful and relevant responses in the Telerik forums.  Is anybody doing this and can you tell me how?

The entity framework (edmx) model in VS2008 doesn't create entities from stored procedures.  LinkToSql does create an object coresponding to the result set, but I can't make the results compile.  I can post code if you're interested, but for now, I'd just like to know if anyone is doing this and how.

Thanks,

Terry

1 Answer, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 05 Nov 2009, 02:15 PM
Hi Terry,

Please find attached a sample project which illustrates how to achieve this. It uses LINQ to SQL and has a mapped to method stored procedure. This method is then exposed as a Domain Operation in the Domain Service. Finally the Silverlight client uses the domain operation to populate a grid controls.

Hope this helps.

All the best,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Terry
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Share this question
or