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

Mvc Grid issue

0 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Schalk
Top achievements
Rank 1
Schalk asked on 29 Mar 2012, 11:22 AM
Hi, thought I'd pop by and make known a few issues I've come accross with inline editing.

If you specify a boolean field, it creates a input type=checkbox with a value attribute. This value attribute is by default set to 'true' and is ignored in general. The problem comes in with Remote Validation, whereby that value field is used, defaults to true on insert and doesn't change when the checkbox check state changes.

I have made a workaround where on the OnEdit event you set the value of that input to its equivalent :checked state (el.val(el.is(':checked'))), as well as providing an onchange handler to do the same.

Another issue I had is that when editing a date field with the datepicker, it doesn't 'load' the date but it's visible inside the invisible input value (via firebug). I resolved this by specifying the same format on the display bound column and the editing datepicker control.

Ciao
Tags
General Discussions
Asked by
Schalk
Top achievements
Rank 1
Share this question
or