We have a lot of Kendo grids with boolean columns in our application - but in ALL of them, we have suddenly found that this column won't update on editing (see attached images before and after clicking on the row's update button).
This is a high priority issue for us!
6 Answers, 1 is accepted
Thank you for contacting us. In general, if the type of the field is explicitly specified as "boolean" in the respective schema.data.model configuration:
http://docs.telerik.com/kendo-ui/api/javascript/data/model#methods-Model.define (options.fields.fieldName.type)
The provided information is not enough for us to determine why the checkbox is not bound to the respective data item field, but you can check out the following online demo for a runnable example of a Grid in inline editing mode, and a boolen column with a checkbox editor:
http://demos.telerik.com/kendo-ui/grid/editing-inline
... compare it to your implementation, and apply the necessary adjustments.
I hope this helps, but if the issue persists, please send us a similar isolated runnable project, where the undesired behavior can be observed, so we can inspect it further, and determine what might be causing it. Thank you in advance.
Regards,
Dimiter Topalov
Telerik by Progress
More information:
1. It doesn't seem to have anything to do with the .NET version specified in the app pool in IIS
2. There was a Windows 10 update on Jan 30 from which our web servers are blocked - but it seems unlikely to have anything to do with that
3. If you inspect the check box, there are clear differences when it is working (on our web servers) to when it is not (run from Visual Studio on any of the developers' PCs). Images attached. We don't have the tools to work out why they are different - but maybe Kendo developers might know what has happened?
Thank you for the provided information and screenshots. The HTML markup suggests that there is a custom Boolean fields editor in the EditorTemplates folder that is present locally, and missing on the server, or the rendering of an editor for the Boolean is somehow hindered locally.
The checkbox from the properly working scenario seems to be rendered by a Html.CheckBoxFor helper method, while the one in the non-working scenario is just a plain input missing the respective bindings.
Please search the local solution for any issues that might be related to the suspected issue. You can check out our demo application, coming with your installation package, for several runnable examples of editable Grids with a checkbox column, compare them to your implementation, and apply the necessary adjustments.
If the issue persists, we will need an isolated runnable project where it can be observed, so we can inspect it further. Thank you in advance.
Regards,
Dimiter Topalov
Telerik by Progress
The solution was an error in the file Views\Shared\EditorTemplates\Boolean.cshtml . The following worked:
@model bool
@(Html.CheckBoxFor(m => m))
Thank you for the feedback. I am glad the issue is resolved.
Regards,
Dimiter Topalov
Telerik by Progress