I have a RadTreeView which is using TreeNodeExpandMode.ServerSideCallBack.
When a node is clicked, I want to expand the node (if not already), and send an AJAX event to the server. I captured the client OnClientNodeClicking and do an AJAX:
function OnClientNodeClicking(sender, args)
{
var node = args.get_node();
// If the tree is not expanded, then expand it now
if (node.get_expanded() == false)
{
node.toggle();
}
else
{
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest("test");
}
}
but I do not know how to tell the tree control to expand (toggle) the tree node, AND send up a AJAX request. It seems to "step on" the AJAX request that actually fills the dropdown if I do the ajaxRequest AND call node.toggle.
Any idea how I can expand the node AND fire an AJAX event?
Thanks
When a node is clicked, I want to expand the node (if not already), and send an AJAX event to the server. I captured the client OnClientNodeClicking and do an AJAX:
function OnClientNodeClicking(sender, args)
{
var node = args.get_node();
// If the tree is not expanded, then expand it now
if (node.get_expanded() == false)
{
node.toggle();
}
else
{
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest("test");
}
}
but I do not know how to tell the tree control to expand (toggle) the tree node, AND send up a AJAX request. It seems to "step on" the AJAX request that actually fills the dropdown if I do the ajaxRequest AND call node.toggle.
Any idea how I can expand the node AND fire an AJAX event?
Thanks
