Problem with treegrid drag to root

Hi,

I have been trying to reparent a sub-folder item back into a root of the treegrid and everytime when I do that, the item will disappear altogether from the treegrid. Only upon refresh will the item will reappear under the tree root. FYI I am using the treegrid with a datasource.

The problem I described can be duplicated in the smartclient 6.5.1 example located under Trees-> Editing. Simply drag a second level item e.g. “Tamara Kane” for example to a position beyong the first item and release it there. “Tamara Kane” will disappear not to be found. When I switch to the JS tab and click on the “Try it” button, I will have 2 items under the root.

I hope my description is good enough for you to help me solve this problem.

Thanks in advance.

regards,
Devon

Known problem fixed for 7.0 but no patch is available for 6.5.1 yet - do you need one?

Actually, I’m using version 7.0RC2 and I have the same issue. Is it not going to be fixed until 7.0 final, or do you think I am just doing something wrong?

If you experience this issue anywhere in the tree (not just at root level), then it’s an unrelated problem and likely a usage issue. Enable the ResultTree log category in the Developer Console to see diagnostics explaining why the node is disappearing - common causes are not having a primary key declared, or not returning correct data as a response to the update request.

It only occured at root level, I have a primary key defined and it was definitely returning the correct response. I was able to work around the issue by changing my rootValue to 0 (previously I was using null).

edit: I looked into the ResultTree logs and it’s saying the server is giving the records a parent_id of undefined. I’m pretty sure the server is returning null though, as my code specifically passes a None in python (which maps to null in JSON), and firebug agrees with this.