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

[Solved] I have priority column with inetger values. If user selects a row and drag it to top then this priorty column value for this row shoudl become 1 and before drag teh top row value shoudl become 2. and

4 Answers 74 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.
Shweta
Top achievements
Rank 1
Shweta asked on 25 Feb 2011, 08:11 AM
I have priority column with inetger values. If user selects a row and drag it to top then this priorty column value for this row shoudl become 1 and before drag teh top row value shoudl become 2 and follwing rows value changed by +1. Can you pelase help me with this.

Thanks ,
Shweta

4 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 25 Feb 2011, 10:01 AM
Hi Shweta,
You can find all the code needed  for your implementation at this online example.

Greetings,
Pavel Pavlov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Shweta
Top achievements
Rank 1
answered on 25 Feb 2011, 07:50 PM
Hi Pavel,

In the online code grivdiew itemsource is IList sow e can insert at specific idnex, but here in my case I ahev gridview itemsource as entityset and using that i cna only add enitty but not at specific index on drop event. Can you please help me with this. how can I reorder row suing entity framework and in MVVM pattern.

Thanks,
Shweta
0
Pavel Pavlov
Telerik team
answered on 28 Feb 2011, 01:11 PM
Hi Shweta,

Indeed you can add the new entity with the index desired. Then to place it at the exact position it belongs, you may just sort RadGridView by that index.
Is that what you are looking for ?

Regards,
Pavel Pavlov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Shweta
Top achievements
Rank 1
answered on 03 Mar 2011, 06:49 PM
Hi Pavel,
Thanks for the reply. Is there any sample which i can refer to , to implemnet what you suggested.

Thanks,
Shweta
Tags
GridView
Asked by
Shweta
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Shweta
Top achievements
Rank 1
Share this question
or