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

kendo mvc grid checkbox submit

3 Answers 190 Views
AJAX and Web 2.0
This is a migrated thread and some comments may be shown as answers.
Dayana Maliyakal
Top achievements
Rank 1
Dayana Maliyakal asked on 17 Jun 2014, 11:50 AM
Hi,



I have a Kendo mvc grid  with checkbox as first column.How to pass checkbox checked rows from view to controller on button click?
Multiple rows should be selected.

With regards
Dayana

3 Answers, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 25 Nov 2014, 11:29 AM
Kendo mvc grid Check box submit please find below code :

.Editable(x => x.Mode(GridEditMode.InCell))
.DataSource(ds => ds.Ajax()
.ServerOperation(false)
.Events(events => events.Error("error"))
.Batch(true)
.Model(model => model.Id(p => p.Id))
.Read(read => read.Action("Orders", "Order").Data("formattedParameters"))))



0
Anand
Top achievements
Rank 1
answered on 28 Feb 2015, 12:07 PM
I have a kendo mvc grid .I would like to add 4 checkbox in a single column  it can be editable also

Please reply
0
Petur Subev
Telerik team
answered on 05 Mar 2015, 07:21 AM
Hello Anand,

Please do not open multiple tickets on the same subject.

Adding checkboxes to the editor is done the same way you specify custom editor. You just append them to the container:

http://dojo.telerik.com/@pesho/ovoqo

To bind those checkboxes to a field which is of type array you can try and use the checked binding.

http://docs.telerik.com/kendo-ui/framework/mvvm/bindings/checked

Everything inside the container is bound (kendo.bind(container, model) to the model when the Grid enters edit mode.

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
AJAX and Web 2.0
Asked by
Dayana Maliyakal
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Anand
Top achievements
Rank 1
Petur Subev
Telerik team
Share this question
or