I have a treeview that uses a webservice as its datasource, and is setup to use LoadOnDemand. I am using the context menus to allow users to add, move, or delete nodes. My question is this:
once the user clicks Paste (for instance) to add a node they have copied from another location in the tree, the treeview posts back to my asp.net page and that page calls out to the database to add the node to the appropriate parent node. That all works great but, how do I force the parent node that has just had a node added to it to refresh itself, and show the newly added node?
The same goes for deleting a node. Once my code returns from the database functionality that removes the record from the DB, how do I cause the node to refresh itself, showing that its "child" node has been removed?
Thanks.
once the user clicks Paste (for instance) to add a node they have copied from another location in the tree, the treeview posts back to my asp.net page and that page calls out to the database to add the node to the appropriate parent node. That all works great but, how do I force the parent node that has just had a node added to it to refresh itself, and show the newly added node?
The same goes for deleting a node. Once my code returns from the database functionality that removes the record from the DB, how do I cause the node to refresh itself, showing that its "child" node has been removed?
Thanks.