Hi all,
I have added node templates using the following code:
this works fine on all of my nodes when they are loaded remotely, however when i want to add a new node on the client-side using something like this:
it will add the node, but it will ignore the template.
is this a bug, or am i missing something?
currentNode doesn't have access to the controls collection that you have when you add a node server side, nor can i find a way to add a template when adding a node to the currentNode.get_nodes() array in javascript.
any thoughts would be greatly appreciated.
thanks
Nick
I have added node templates using the following code:
| <NodeTemplate> |
| <img alt="node type" src="/Media/help_16.png" class='nodeClass<%# Eval("NodeTypeId") %>' /> |
| <asp:Label ID="text" runat="server"><%# Eval("Title") %></asp:Label> |
| </NodeTemplate> |
this works fine on all of my nodes when they are loaded remotely, however when i want to add a new node on the client-side using something like this:
| currentNode.get_nodes().add(newNode); |
it will add the node, but it will ignore the template.
is this a bug, or am i missing something?
currentNode doesn't have access to the controls collection that you have when you add a node server side, nor can i find a way to add a template when adding a node to the currentNode.get_nodes() array in javascript.
any thoughts would be greatly appreciated.
thanks
Nick