This question is locked. New answers and comments are not allowed.
I'm running a cross a particular theme on my site, where I have some user input dialog (like a drop down list) which dictates the data to be rendered in a Telerik control (usually a TreeView) via an Ajax postback. The problem I run into is after an ajax post back, javascript is not run (which makes sense) but if the treeview has any drop and drop functionality - it simply doesn't fire since it must be registered via something like
which is generated server side, and run client side in the document.ready function.
So my question is how, other than through messy json, can i run that register script, then with an ajax post back render a treeview that is located in a seperate view? If i explicitly call that line in an OnSuccess method, it doesn't seem to work, any ideas?
Btw if I render the control on it's own separate view through a non-ajax method, the control works fine.
-Jason
jQuery('#AccountMap').tTreeView({dragAndDrop:{"dropTargets":".drop-area"}, onSelect:onAccountMapNodeSelect, onNodeDragStart:onAccountMapNodeDrag, onNodeDrop:onAccountMapNodeDrop, onNodeDropped:onAccountMapNodeDropped});which is generated server side, and run client side in the document.ready function.
So my question is how, other than through messy json, can i run that register script, then with an ajax post back render a treeview that is located in a seperate view? If i explicitly call that line in an OnSuccess method, it doesn't seem to work, any ideas?
Btw if I render the control on it's own separate view through a non-ajax method, the control works fine.
-Jason