Scenario1: I'm trying to set the custom drag handle for the list view items. I used the below code snippet to my Listview control Image item. The below "onmousedown" event works fine for the first time of page load of Radlistview.
<ItemTemplate>
<div class="rlvI">
<div class="rlvDrag"
onmousedown="Telerik.Web.UI.RadListView.HandleDrag(event, '<%# Container.OwnerListView.ClientID %>', <%# Container.DisplayIndex%>)">
</div>
<div>
</ItemTemplate>
Isssue: Within application I'm changing the listview data and populating through AJAX method. After the data gets rebinded in the RadListview the event is not working and not able to drag the items. Do I need to dynamically set this event for new Listview items at runtime ? How do I set this "onmousedown" event dynamically in the codebehind while populating the listview ?
Scenario2: Similar issue happens if I use the RadListViewItemDragHandle, it is throwing item_drag is null during the mousedown of the draghandle item for the second time after listview rebind. I'm thinking the item is not set correctly for dynamically changing listview items in both the scenarios.
Any help is much appreciated..
Thanks
<ItemTemplate>
<div class="rlvI">
<div class="rlvDrag"
onmousedown="Telerik.Web.UI.RadListView.HandleDrag(event, '<%# Container.OwnerListView.ClientID %>', <%# Container.DisplayIndex%>)">
</div>
<div>
</ItemTemplate>
Isssue: Within application I'm changing the listview data and populating through AJAX method. After the data gets rebinded in the RadListview the event is not working and not able to drag the items. Do I need to dynamically set this event for new Listview items at runtime ? How do I set this "onmousedown" event dynamically in the codebehind while populating the listview ?
Scenario2: Similar issue happens if I use the RadListViewItemDragHandle, it is throwing item_drag is null during the mousedown of the draghandle item for the second time after listview rebind. I'm thinking the item is not set correctly for dynamically changing listview items in both the scenarios.
Any help is much appreciated..
Thanks