Tree - RootValue in SC7 vs 6.5

Using the same XML under SC7 and 6.5 I get a different display.

The XML for the first element is:

<ID>0</ID>
<PARENTID>root</PARENTID>
<ISFOLDER>true</ISFOLDER>
<ISOPEN>true</ISOPEN>

All child elements then have PARENTID: 0.

In SC6.5 these child elements with PARENTID: 0 are display as sub elements beneath root, so appear as children.

In SC7 these child elements with PARENTID: 0 are displayed at the same level as root, so appear as brothers.

It seems internally SC7 treats root and 0 as the same thing.


If I use the following XML under SC7:

<ID>1</ID>
<PARENTID>root</PARENTID>
<ISFOLDER>true</ISFOLDER>
<ISOPEN>true</ISOPEN>

And have all children use PARENTID: 1, I get the same display as I did under SC6.5.

However giving root an ID of 1 is not correct, it’s possible a child could have this as it’s own ID.

Is this something that will be corrected in SC7 so it matches the behaviour of 6.5?

Whether a node appear as root is based onyour setting for rootValue. If you think there’s been a change in behavior can you show all the relevant code - the complete DataSource, complete response, and any relevant Treegrid-level settings such as initialData or dataProperties.

Sorry for the delay in creating this test case.

I have attached an image which shows the problem, the top image has been created under smartclient 7rc2 and shows the children at the same level as the parent.

The bottom image is from smartclient 6.5 and shows the children correctly as children of parent.

I have also attached the files needed to create this.

In test.html the path to the javascript files will need to be changed:

/sc7/LGPL/smartclientSDK/isomorphic/system/modules/ISC_Core.js

to

/sc651/LGPL/smartclientSDK/isomorphic/system/modules/ISC_Core.js

Please let me know if I have or haven’t provided enough information.

Thanks

test.html (1.95 KB)

test.xml (264 Bytes)

Hi Nick
Thanks for the test case - very helpful.
This is indeed a bug. We’ve put together some patch code and posted it here

Please let us know if it doesn’t resolve the issue for you
Thanks
Isomorphic Software

Thank you that works perfectly.