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

Use Slider with selection range in a Draggable RadListBox Item

2 Answers 71 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Jose
Top achievements
Rank 1
Jose asked on 13 Nov 2014, 12:47 PM
Hi,

I'm trying to use the Slider with selection range enabled into a RadListBox item template. The items in the listbox are draggable to do some manual sorting. When I try to move the slider range values, the whole item is dragged and I cannot change the values. Is there a way to prevent item drag when the slide range values are been changed?

Thanks, Jose

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 17 Nov 2014, 09:48 AM
Hi Jose,

Can you tell me how you are implement the dragging of the items? If you are using the ListBoxDragDropBehavior (like demonstrated in the Drag and Drop section in our help), you can set the DragDropManager.AllowDrag attached property on the RadListBoxItems to true, instead of the DragDropManager.AllowCaptureDrag. This way when you move the slide the item won't be dragged.

<Style TargetType="telerik:RadListBoxItem">
               <Setter Property="telerik:DragDropManager.AllowDrag" Value="True" />
  </Style>

If this is not your case, can you please provide me with an isolated project demonstrating your drag and drop implementation? This will help me in better understanding your case and assist you further.

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jose
Top achievements
Rank 1
answered on 17 Nov 2014, 05:35 PM
It was my case and your solution worked!

Thanks, Jose
Tags
Slider
Asked by
Jose
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Jose
Top achievements
Rank 1
Share this question
or