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

TreeList Multi select and drag and drop

3 Answers 97 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Sanjaya Kodagoda
Top achievements
Rank 1
Sanjaya Kodagoda asked on 25 Aug 2014, 12:01 PM
Hi,

I have created a treelist with treelist select column and allow multi select.

1) When I have selected two nodes, if I select a node by clicking on the node it select that particular node. That behavior is correct.
But when I click the checkbox(select column) it deselects that row. I want to select the row that user clicked irrespective of clicking on the node or
checkbox (select column).

 

2) I have enabled the dragging operation in the treelist. I want to know whether I can delay the start of dragging operation. It seems dragging is
starting as soon as I try to select a node. I can see as user click on the row preview image of dragging node is visible. It disappears quickly. 
But it is does not look nice. This happens with the node selection and slight movement of the mouse which makes start of drag operation

 
I have attached some screenshots for reference

Any help is highly appreciated.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Aug 2014, 12:33 PM
Hi Sanjaya Kodagoda,

As for your first question the default behavior of the control is that it will select/deselect the item by clicking on both node and checkbox. The only situation is if trying to select the already selected item then it will deselect the item. This is the default behavior of the control.

For your next question Unfortunately I couldn't replicate any issue. Please have a look into this online demo and try to replicate it here.

Thanks,
Shinu.
0
Sanjaya Kodagoda
Top achievements
Rank 1
answered on 29 Aug 2014, 03:54 AM
Hi,

To replicate the second issue, just click the node with a little sliding when click the node. As it slide drag preview is just appear and disappear as mouse release. To prevent preview appear I wanted to delay the dragging operation.
0
Kostadin
Telerik team
answered on 02 Sep 2014, 11:31 AM
Hello Sanjaya,

The drag started operation starts when you click and hold the left mouse button and start moving the mouse. I am afraid that you could not delay the operation as a couple of event are called at this moment and this might lead to unexpected behavior.

Regards,
Kostadin
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
Sanjaya Kodagoda
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Sanjaya Kodagoda
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or