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

Connecting multiple grids

2 Answers 176 Views
Sortable
This is a migrated thread and some comments may be shown as answers.
Nicholas
Top achievements
Rank 1
Nicholas asked on 09 Apr 2014, 03:31 PM
Hi,

We're using the Sortable widget to connect two grids, and this works as expected as long as both grids have data. However, if the drop target's grid is empty, we've found that it is impossible to drop any rows there. connectWith in the Sortable constructor is being set to: "#gridName table".

Is this an expected limitation? Is there any workaround?

Thanks,
Nick

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 11 Apr 2014, 12:00 PM
Hello Nicholas,

The behavior is expected and occurs because the after Grid is left with no records its table becomes hidden (with zero height). As a result the user cannot hover the sortable container with the mouse, respectively cannot activate the sortable widget.

As a possible solution I suggest to add an empty row to the Grid's table which indicates that there are no records left. In this way the table will expand and the user will be able to hover it with the mouse.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Nicholas
Top achievements
Rank 1
answered on 14 Apr 2014, 03:25 PM
Thanks! That worked perfectly.
Tags
Sortable
Asked by
Nicholas
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Nicholas
Top achievements
Rank 1
Share this question
or