Hi,
I'm currently building a page which has a tree view control. I would like to build the tree on the fly rather than downloading all the data at once as there is a load of data which takes too long to download at once.
This is fine as the stored procedures I'm using return a count of any child items, and if this count is greater than 0 then I add a dummy child node.
I then have an onexpand function which gets the child items of the expanded folder. Problem is that on the onexpand event, the first thing the treeview does is display the dummy node for a splite second, then it postsbacks to run the server side function which removes the dummy node and populates the nodes with the correct data.
I have a client side function which fires on the onExpand event, but I can't seem to remove the child dummy node of the folder which I am expanding.
Does anyone know how I can remove child nodes from a folder which I am expanding client side before the postback?
Cheers
I'm currently building a page which has a tree view control. I would like to build the tree on the fly rather than downloading all the data at once as there is a load of data which takes too long to download at once.
This is fine as the stored procedures I'm using return a count of any child items, and if this count is greater than 0 then I add a dummy child node.
I then have an onexpand function which gets the child items of the expanded folder. Problem is that on the onexpand event, the first thing the treeview does is display the dummy node for a splite second, then it postsbacks to run the server side function which removes the dummy node and populates the nodes with the correct data.
I have a client side function which fires on the onExpand event, but I can't seem to remove the child dummy node of the folder which I am expanding.
Does anyone know how I can remove child nodes from a folder which I am expanding client side before the postback?
Cheers