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

Kendo UI Grid Columns with EditorTemplate and decimal datatype column issues.

1 Answer 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mari
Top achievements
Rank 1
Mari asked on 19 Feb 2013, 03:52 PM

Hi,

What I am trying to do :

1)I have a form with Kendo UI controls like DatePicker(s), Dropdownlist(s), NumericTextBox(s) on the first half of the page
2)Second half has a Kendo UI MVC Grid control
  a) This Kendo UI Grid control has 8 columns in which 2 columns has a Kendo dropdownlist(EditorTemplate) and CheckBox(EditorTemplate).
  b) The Kendo UI Grid control is Ajax binding.
3) When the save button is clicked, all the values from the Kendo UI controls(first half) and Kendo UI grid control(second half) together
   are posted as a Json object via "Ajax Post" to the controller.
4) I am using Model binding for the above process

Issues or the problem I am facing :
1) The first half of the form with other Kendo UI controls are posting their values properly to the controller, but where as
   the Kendo UI Grid is having some problems posting some column values
  
   a) The columns in the Kendo UI Grid with the datatype decimal is not posting the values
   b) The EditorTemplate controls like the CheckBox and the kendo dropdown when selected shows the values "[Object Object]" for dropdownlist
      and the actual value of the boolean rather than the checkbox control.
  
Here is the project and attaching the same.
Please refer the /Views/Index view page for the above mentioned.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 21 Feb 2013, 12:27 PM
Hello,

The decimal value is sent but the DefaultModelBinder cannot bind it. In order to avoid this you should format the value so that it contains a decimal separator or create a custom model binder. More information about this issue is available here.
I could not reproduce the problem with the dropdownlist and the checkbox on my side. Could you check this screen cast and let me know if I am missing something?

Kind regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Mari
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or