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

Grid Boolean Column Update Not Working

6 Answers 538 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Graham
Top achievements
Rank 2
Iron
Iron
Graham asked on 23 Feb 2017, 01:17 PM

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

Sort by
0
Dimiter Topalov
Telerik team
answered on 24 Feb 2017, 08:59 AM
Hi Graham,

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Graham
Top achievements
Rank 2
Iron
Iron
answered on 24 Feb 2017, 09:41 AM
More information: we've found that if we publish our solution to a web server, it works correctly - but if we run it from Visual Studio 2015 (in either debug or release mode), we get the issue.
0
Graham
Top achievements
Rank 2
Iron
Iron
answered on 24 Feb 2017, 11:30 AM

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?

0
Dimiter Topalov
Telerik team
answered on 28 Feb 2017, 07:06 AM
Hello Graham,

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Graham
Top achievements
Rank 2
Iron
Iron
answered on 21 Mar 2017, 11:08 AM

The solution was an error in the file Views\Shared\EditorTemplates\Boolean.cshtml . The following worked:

 

@model bool
@(Html.CheckBoxFor(m => m))

0
Dimiter Topalov
Telerik team
answered on 23 Mar 2017, 08:03 AM
Hello Graham,

Thank you for the feedback. I am glad the issue is resolved.

Regards,
Dimiter Topalov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Graham
Top achievements
Rank 2
Iron
Iron
Answers by
Dimiter Topalov
Telerik team
Graham
Top achievements
Rank 2
Iron
Iron
Share this question
or