Intersoft WebDesktop Documentation
Use Custom Object as Data
See Also Send Feedback
Intersoft WebDesktop > WebDragDropExtender > Features > Use Custom Object as Data

Glossary Item Box

Although WebDragDropExtender provides DragData property at WebDragControl class, it can only be used to pass string-type data. In more advanced scenario, you might want to pass more complex object as the DragData, which later queried by the target drop object for validation. WebDragDropExtender allows you to achieve this scenario by assigning the custom object in OnDragStart client side event.

In this type of scenario, developer usually queries against the object type and data in OnDragOver client side event. WebDragDropExtender control provides GetDataPresent method which you can use to validate the type of the object. The GetDataPresent concept is similar to WinForm.NET drag drop architecture.

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.