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

recursive (de)selection client-side

2 Answers 51 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 28 Apr 2014, 12:54 PM
Hello,

I want to implement client-side recursive (de)selection. This works so far, but I have a problem regarding the deselecting:

1) If a user selects a parent node, all children get selected (works fine)
2) If a user deselects a parent node, all children get deselected (works fine)
3) If a children gets deselected, the parent node gets deselected. Here is the problem: The parent node gets deselected, which triggers the children of the parent to be deselected (because of 2.)

How can I determine if an itemDeselected client-side event is triggered because of the user to (un)check an item or if it was triggered internally, because of me setting the selected state?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 01 May 2014, 02:03 PM
Hello Jan-Patrick,

Thank you for the provided explanation.

We will prepare a sample RadTreeList web site to demonstrate how you can implement the requested functionality and send it to you when ready.

Thank you for your patience in advance.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Eyup
Telerik team
answered on 09 May 2014, 01:03 PM
Hi Jan-Patrick,

Thank you again for your patience.

Please check the following sample and let me know if it helps you:
http://www.telerik.com/support/code-library/recursive-selection-on-the-client-when-paging-is-disabled

Looking forward to your reply.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeList
Asked by
JP
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or