Home - Forums-.NET - FlyTreeView (ASP.NET) - Add node on clientside using server template

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Add node on clientside using server template
Link Posted: 14-Apr-2011 01:09
Hello!
I have  server template (just a table with 2 more labels), almost the same as in the online example. Is it possible to add such nodes on client side ? I understand _ondatabound will never be called, but I think I can imagine finding controls and filling their values at client side.
My tests show that new node added at client side is just a div with text. Is that true?
Link Posted: 14-Apr-2011 11:36
You can arbitrary HTML to nodes at client side. But nodes created this way will not have server template associated with them at postback.
Anyway, you can put any data as node text (or value) and retrieve this text from node.Text property at postback.