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

[Solved] Datasource sometimes fails to trigger itemchange

5 Answers 312 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 07 Jan 2015, 07:06 PM
I've mentioned this issue in the grid forum as well. I'm not sure if it's a datasource problem or a grid problem. The only thing that I can see via logging is that the data source's item changed event is not fired when the failure occurs.

I've created an example that reproduces the issue some of the time. This issue does not occur all the time but seems to be related to using the mouse button and update button. Hitting enter to save seems to always work. At first I thought it was my code (validation, etc) but I've narrowed it down to a simple example that still is an example of the issue.

I've previously had hacks in place to have custom buttons that call $(document.activeElement).blur() before calling a grid update method but even that was problematic.

Dojo example: http://dojo.telerik.com/oWoBu
Screencast showing the issue: http://screencast.com/t/lsmHjMqc

In the screencast the first two attempts succeed but the third attempt shows how the data isn't saved.

5 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 09 Jan 2015, 09:46 AM

Hello Ryan,

 

I have tried to reproduce the issue using the example that you provided, but to no avail. Furthermore I have removed the kendoConsole module and stripped down some unnecessary configurations, and still was not able to reproduce the issue. Please check the following updated example and let me know if the problem can be reproduced here:

 

http://dojo.telerik.com/oWoBu/2

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ryan
Top achievements
Rank 1
answered on 09 Jan 2015, 12:27 PM
Hello Kiril,

I was unable to produce it there. After re-adding the selectable property set to ​"multiple, row" to the grid I can re-create. I'm hoping that we won't have to re-create a post in the grid forum to continue this exploration.

http://dojo.telerik.com/oWoBu/3
http://screencast.com/t/VTVowFcOB6
0
Accepted
Kiril Nikolov
Telerik team
answered on 12 Jan 2015, 03:04 PM

Hello Ryan,

The issue is fixed in the latest internal build, so I would suggest you upgrading to the latest version. Here is a test example that shows the fixed issue.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ryan
Top achievements
Rank 1
answered on 13 Jan 2015, 03:10 PM
Thanks Kiril! It appears to be fixed. I quickly diff'd the grid and datasource files but nothing jumped out at me. Was it the grid that contained the bug? I didn't notice anything in the version notes either.
0
Kiril Nikolov
Telerik team
answered on 15 Jan 2015, 08:28 AM

Hello Ryan,

It is the selectable components that held the bug. Here is the commit that fixed it:

https://github.com/telerik/kendo-ui-core/commit/f18b6586d2e4683efa323564a3c4092cfe0fbb4f#diff-4dfd3d95a95ffa68c379f029da168604

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Data Source
Asked by
Ryan
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or