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

[Solved] Row Reorder and RIA

1 Answer 92 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.
UGH!!
Top achievements
Rank 1
UGH!! asked on 30 Nov 2010, 08:49 PM
Does anyone have an sample project using the RadGridView reorder rows and saving to the db with RIA domainservice?

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 05 Dec 2010, 09:39 PM
Hello UGH!!,

I am afraid that we do not have such sample yet but here are some tips that might help you with your task. Since rows in a database are not stored in any particular order you should devise a way to preserve their order. For example, you can add a new property (Order) to your data items which will indicate the order of an item.

Once you have this property you can add a SortDescriptor for that property so that the items appear in the correct order. When a row is reordered its Order property should be updated. 


Regards,
Milan
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
UGH!!
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or