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

Dragging from RadDropDownList within ribbon bar

1 Answer 66 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Toby
Top achievements
Rank 1
Toby asked on 20 Nov 2017, 03:19 PM

Hi,

 

I have a RadDropDownList as part of my ribbon bar, is it possible to drag (then drop) the selected item onto another control ?

I have done this before using a RadListControl (and RadListDataItems) on a form which has a MouseMove handler, however the  RadDropDownList control in the ribbon bar does not have a mouse move handler.

In the ribbon bar mouse down handler, I have tried using

RadDropDownListEditableAreaElement b = radRibbonBar1.ElementTree.GetElementAtPoint(e.Location) as RadDropDownListEditableAreaElement;

but how do I get a reference to the original RadListDataItem which has some data in the Value and Tag fields ?

Regards

Toby

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Nov 2017, 08:31 AM
Hello Toby,

I have attached a small example that shows how this can be implemented using OLE drag-drop. 

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
RibbonBar
Asked by
Toby
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or