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

Grid and sortable integration not working ok

2 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 16 Oct 2014, 10:25 AM
You can see it in http://dojo.telerik.com/aTaM, which is one of the demos. You can reproduce the bug this way:
1.-Make that grid editable
2.-Edit column unit price, and modify the value
3.-Click on the same row, on column ProductName
4.-As you can see, the unit price column doesn´t keep the value you just entered.

If that grid wasn´t integrated with sortable, the behaviour would be as expected.
Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 20 Oct 2014, 08:16 AM
Hello Juan,

The reason for this behavior is that grid rows are draggable. In order to avoid text selection while dragging rows mousedown event is prevented. At the same time preventing mousedown will prevent the focus out behavior of input elements and they will not trigger their change event which must happen in order to update the model.

A possible workaround is to adjust the filter so that it skips rows with inputs inside. Here is updated example. It seems to be working on my end: http://dojo.telerik.com/@rusev/Opiq.

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
Fernando
Top achievements
Rank 1
answered on 20 Oct 2014, 11:10 AM
Thanks, it works like a charm
Tags
Grid
Asked by
Fernando
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Fernando
Top achievements
Rank 1
Share this question
or