Hi, I can get the sender id by args.get_itemIndex();, how can i get the destinationElement(which must also be a radlistviewitem) ID and/or clientvalue?
1 Answer, 1 is accepted
0
Rosen
Telerik team
answered on 21 Jul 2010, 12:59 PM
Hi James,
I'm afraid that the destination item's index is not available, through itemdropping eventArgs. As RadListView is a "look-less control" it is hard to determine which portion of the rendered html it the actual item without cluttering the output with useless markup. Thus there is no client-side object representation of the data items.
However you can track the id of the destinationItem by hooking to its mouseover and mouseout events and saving the DisplayIndex in order to retrieve it from dropping handler. Similar to the following:
//save the id in a variable when dragged item is over
currentDestinationIndex = displayIndex;
}
function itemMouseOut() {
//clear the variable if dragged item leaves
//destination item boundaries
currentDestinationIndex = -1;
}
</script>
Greetings,
Rosen
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