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

Example code needed to change drag hint on the fly.

2 Answers 144 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
JB
Top achievements
Rank 1
JB asked on 13 Dec 2011, 06:30 PM
Hi All,

I have a list of products and allowing the end user to select one product at a time and drop onto two possible locations/divs.

Depending on the selected product (some business rules), I want to have different hint depending which location the product is dragging into.  So let say, if the product is dragging into location one, the hint can be either "dennied", a green icon, again, depending on the "current state of the product".

So would be great if someone can provide an example of how/where to hook up an event handler to change the drag hint dynamically.


Thanks!

JB

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 14 Dec 2011, 11:09 AM
Hello Jb,

Check the following JSFiddle to see how this might be achieved.

Greetings,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
JB
Top achievements
Rank 1
answered on 16 Dec 2011, 11:43 PM
Thanks for the example! 

JB
Tags
Drag and Drop
Asked by
JB
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
JB
Top achievements
Rank 1
Share this question
or