I have been working with an organizational chart and have noticed some odd behavior when working with a Rebind on postback.
I have attached some screen shots to show what is happening.
First I bound the grid to me. I have four subordinates with no other subordinates.
I expanded my node to show the subordinates, then I clicked the expand on two of them.
The result is in FirstBind.png, and it looks exactly as expected.
THEN, I call Rebind() on the tree and rebind with MY supervisor at the root of the tree. What is unexpected here, is that even though this was a complete rebind, MY part of the tree remains expanded in exactly the same way that it was before the rebind. You can see that my node is expanded, and that the expand markers for the two subordinates that I attempted to expand earlier have disappeared. This is in SecondBind.png.
This does not seem expected to me. I could see this information being persisted if I was doing some other sort of a postback, but on a Rebind(), I think everything should be reset.
I have attached some screen shots to show what is happening.
First I bound the grid to me. I have four subordinates with no other subordinates.
I expanded my node to show the subordinates, then I clicked the expand on two of them.
The result is in FirstBind.png, and it looks exactly as expected.
THEN, I call Rebind() on the tree and rebind with MY supervisor at the root of the tree. What is unexpected here, is that even though this was a complete rebind, MY part of the tree remains expanded in exactly the same way that it was before the rebind. You can see that my node is expanded, and that the expand markers for the two subordinates that I attempted to expand earlier have disappeared. This is in SecondBind.png.
This does not seem expected to me. I could see this information being persisted if I was doing some other sort of a postback, but on a Rebind(), I think everything should be reset.