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

[Solved] RadGridView + ria + Linq2Sql (.dbml) + crud + editable rowdetailstemplate

1 Answer 162 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve Y
Top achievements
Rank 2
Steve Y asked on 10 Nov 2009, 02:53 PM
Hi Telerik Team,

It is taking me quite a while to get the basic crud stuff working within a silverlight application. Some of it is for sure a lack of knowledge on my part as I'm new to silverlight. However, I'm a moderately experienced asp.net/ajax coder so looking at this from a 'code-behind is in the client and data stuff is shared in the client and server' is just different and needs to be more fully understood.

There seem to be quite a few basic examples on the web using ria and domaindatasource for reading data (like this link) but few show how to get update, add and delete working.

It would be really useful to me (and maybe others too) if you could put together an example showing the following:
  • RadGridView
  • Linq2sql data source (maybe northwind with a .dbml)
  • DomainDataSource (declaritively in XAML)
  • Full crud showing how to hook into the update add and delete methods)
  • editing of the main grid data be fully functional, plus
  • a details row using RowDetailsTemplate that is fully editable too showing how it binds into the crud operations of the 'parent' grid

Perhaps this could also be used in the Silverlight demos in the future?

Thanks in advance,
Steve

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Nov 2009, 10:54 AM
Hi Steve,

Generally CRUD operations with RIA services and LINQ to SQL can be achieved very easily. Since our row details will share the same DataContext with the parent row all you need to do is to create two way binding for desired control in row details.

I've attached an example illustrating all these.

Sincerely yours,
Vlad
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
GridView
Asked by
Steve Y
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Share this question
or