drag and drop in updating grid view, checkbox

2 posts, 0 answers
  1. Naveen T
    Naveen T avatar
    30 posts
    Member since:
    Jun 2012

    Posted 12 Mar 2010 Link to this post

    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]).

  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 17 Mar 2010 Link to this post

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top