The source of the problem is hiding in the "Block" Html elements ( <table> , <div>, etc) that are automatically placed on a new line and thus potentially breaking the desired design and position of the template in the treeview hierarchy.
If you need to use block elements for your <NodeTemplate>, make sure you add the css display:inline style to the root tag.
Example:
| ASPX |
Copy Code |
|
... <NodeTemplate> <table style="display:inline"> <tr> <td> ... </td> <td> ... </td> <td> ... </td> </tr> </table> <NodeTemplate> ...
... <NodeTemplate> <div style="display:inline"> ... </div> <NodeTemplate> ... |