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

drag and drop in updating grid view, checkbox

1 Answer 41 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Naveen T
Top achievements
Rank 1
Naveen T asked on 12 Mar 2010, 12:37 PM
Hi
My senario is i am having list of check boxes and an grid view when i drag the the row and leave it on specific checkbox i need to remove row from grid view and dragged item should not be added to list box but  update the count of checkbox next to it  like(ex: chkboxname[1]).



Regards,
Nav

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 17 Mar 2010, 06:26 PM
Hello Nav Kum,

I have prepared an example illustrating your scenario.

I used a ListBox and I set the ItemTemplate property to display the ListBoxItems in a StackPanel, consisting of a CheckBox and a TextBox. I also created a business object with a property Count (which I use to count the number of dropped items on each ListBoxItem).

In the OnGridViewDragInfo() event handler I check if the Drag has completed and remove the dragged item from the RadGridView. Then in the OnListBoxDropInfo() event handler I update the Count property.

Please take a look at the example and let me know if it works for you or if you need more info.

Sincerely yours,
Tina Stancheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
DragAndDrop
Asked by
Naveen T
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or