Hi Neal,
If your intention is to load the childnode dynamically by invoking the clientside javascript, it can be achieved via a callback panel but you cannot make the "+" sign to appear by setting the expandmode to client side because When the expand mode is set to Client side, any callback or postback will not occur on expanding node. Please refer the code below for dynamically loading the child node via callback panel:
function nodeExpand(node)
{
document.getElementById(''eventDisplay'').innerHTML = "Expanded ''" + node.Text + "''" ;
CallbackPanel1.callback(node.Text);
}
code behind:
protected void CallbackPanel1_CallbackRefresh(object sender, CancellableCallbackEventArgs e)
{
foreach (TreeViewNode node in this.TreeView1.Items)
{
if (node.Text == e.CallbackArgument)
{
TreeViewNode childnode = new TreeViewNode();
childnode.Text = "New Text";
node.Items.Add(childnode);
}
}
}
Please refer the sample in the link below which illustrates the above:
http://websamples.syncfusion.com/samples/Tools.Web/6.2.0.40/cs/main.htm Please try running the sample and if still the issue exists, could you please try reproducing it in the above sample so that we could sort out the cause and provide you a better solution?
Regards,
Janagan.