I am adding a node to the tree using the Node.addNode( string text )
what I want to do is after I add the node, I want to insert it to database without postback does ultrawebtree has this kind of functionallity?
I notice when I view source after adding a node, the node is not exists in the source, eventhough I can get the property as usual, I don't know it will be a problem or not, except for the DataKey is null this is obvious because I havent insert the node to database.
-thx-
Hello,
This is not supported internally by UltraWebTree. I guess the solution here would be to have a hidden variable and a button inside an WARP panel instance (could be hidden using CSS - by using absolute positioning and negative top/left coordinates) and with javascript you can call the button .click() method. This will trigger its server side Button.Click event and there you can add the new node to the database.
Just make sure you first update the hidden filed with something unique identifying the new node, so that in the server side you can obtain it from the hidden and use the data while inserting in the database.
Hope this helps.
i quess the trigger is
ts.doLoadOnDemand(ts, node, currentLoadingNodeText)
but i don't know what inside doLoadOnDemands because it's private it is working but with many issue, don't know how to use it