I'm using a WebDataTree using Version=12.2.20122.2202.
I'm using the drag and drop functionality and when i move a node to another location inside the same tree y get a wrong address in the NodeClick client-side event, this does not happend if i activate the AutoPostBack NodeAdded="On" NodeDropped="On".
Is there any way to refresh the node address without use AutoPostback(only in client-side)?.
Hello rickycl ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Thank you for letting me know. If you encounter any issues or have any questions after trying out this approach don’t hesitate to let me know.
Developer Support Engineer II
Hello Maya,
i have not had time to try this solution yet. I expect to try this solution next week.
Thank you for contacting Infragistics Developer Support.
When the DragDropMode is set to “Move” the “adr” attribute of the element is not automatically updated based on where the node is dropped.
The change will be applied after a postback has occurred so that the changes have been committed to the server.
As a possible workaround I suggest that you set the DragDropMode to Copy, which will create a copy of the dragged node and add it to the tree. In that case the “adr” attribute will contain the correct path, however it’ll also contain information that the node was copied so the “adr” would look like this: adr=”1.0,c0”. In order to have it behave like “Move” you could remove the old node from the tree once it was dropped in the new location.
I’ve attached an example for your reference. Let me know if this approach would work in your scenario.