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

post selection

3 Answers 165 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 2
Kenneth asked on 30 Nov 2014, 05:46 PM
Hi Kendo team

A tiny issue. I have enabled row-selection in my treelist. Unfortunately If I expand a row, it gets selected. You can try it yourself on the ‘Basic usage’ example of TREELIST. Add this in the code: selectable: "row".

Perhaps its intended, but when I try the same with the ‘Hierarchy’ demo of GRID, the rows are not automatically selected when they are expanded. I think that’s the best design.

And one last wish – I almost promise: a Select event :o)

Thank you so much for this UI!

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 02 Dec 2014, 03:23 PM
Hello Kenneth,

Do you mean that clicking over the expand/collapse button should not cause selection? Is this what you think is more appropriate behavior?

There is a change event which is triggered on selecting item - same as in the Grid widget.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kenneth
Top achievements
Rank 2
answered on 03 Dec 2014, 07:36 AM
Hello Nikolay
Yes thats what I was thinking. When I expand in your TREEVIEW, the item that gets expanded, are not selected. When browsing folders and files in Windows explorer, the expanded folder doesn’t get selected either - and as in your hierarchy grid
I have been using my own developed treelist until you came out with this nice UI. My page renders some graphs and statistics when the user selects a row. The user should not get presented for new statistics each time he expands a row – only when he select a row. The same procedure as in Windows explorer: when a user expands a folder – he is not necessarily interested in the content of the expanded folder – it could just be one out of multiple steps before the user selects the folder and then wants to see the files.
I have made some code that handles this for me now, so I will manage without a change from you guys in the design, but the code looks a bit like a workaround from my perspective. By the way – when I still developed in WPF, I used the treelist from Telerik in one of my applications – it has the same selection design as Windows explorer.

As for the change event you are right – I am using the change event now but it gets called each time a row gets expanded, collapsed or selected – I have made a way to handle this to – so this is also just feedback on your new and nice UI. As you mention, there are only a change event in the grid and that is enough, but you have a select event in TREEVIEW where a change more commonly could be multiple things.

So – I can get along without any changes from your side. With this post I have given you a feedback from a customer’s perspective and perhaps you can use it :o)

Kind regards from Kenneth
0
Accepted
Nikolay Rusev
Telerik team
answered on 04 Dec 2014, 01:30 PM
Hello Kenneth,

Thank you for the feedback. We really appreciate it.

Regarding the click on expand/collapse button I just wont it to make sure about the scenario. We will change the behavior. A change will be introduced in one of the upcoming internal builds.

Regarding the change event - it has the same behavior as in the Grid as it is implemented as external component. It is triggered every time item is selected, event when the item is already selected. However implementing the above suggestion will change a bit the change event behavior and it will not be triggered on expand/collapse.

Thank you for taking the time to provide us with your valuable feedback.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeList
Asked by
Kenneth
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Kenneth
Top achievements
Rank 2
Share this question
or