This is a migrated thread and some comments may be shown as answers.

Problem with get_expanded() function

3 Answers 48 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Som
Top achievements
Rank 1
Som asked on 01 Apr 2009, 04:52 PM
It seems that the get_expanded() function of a node returns false even if the node has been expanded but has 0 children. I will appreciate if you could please look into it and let me know if it is actually an issue or am I missing something. If it is actually an issue then I will appreciate a work around.

Thanks
Som

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Apr 2009, 10:43 AM
Hi Som,

How can we reproduce this behavior? I tried using load on demand and the get_expanded property reported correct values even for nodes which have no children after loading on demand. Find attached my test page. Upon clicking a node the value returned by get_expanded is shown via alert.

Greetings,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Som
Top achievements
Rank 1
answered on 02 Apr 2009, 03:17 PM
Try ServerSide  expandmode instead of ServerSideCallBack.

0
Atanas Korchev
Telerik team
answered on 02 Apr 2009, 04:36 PM
Hi Som,

Indeed the Expanded property is not serialized at all now when the node has no children. Perhaps this is done to save a few bytes of the rendered markup. Anyway I recognize this as a bug and have logged it for fixing.The fix will be incorporated in the upcoming internal builds. I have also updated your telerik points.

Regards,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Som
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Som
Top achievements
Rank 1
Share this question
or