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

Batch Editing with Checkboxes

3 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Guru Rao
Top achievements
Rank 1
Guru Rao asked on 02 Jun 2011, 01:29 PM
Hello,

I have gone through most of the demos on the site.  In particular I have been looking the batch editing (http://demos.telerik.com/aspnet-mvc/grid/editingbatch) and checkbox server side (http://demos.telerik.com/aspnet-mvc/grid/checkboxesserverside).

I am struggling with combining them.  I have a data set and I want the ability to check, check, uncheck entries in bulk and give an status or reason for both in bulk as well.  What is the best way to combine checkbox and batch editing?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Jun 2011, 08:53 AM
Hello Guru Rao,

 What have you tried so far? What are the problems which you are currently facing? There really shouldn't be any problem with integrating checkboxes with batch editing mode. Just make sure the checkbox column is ReadOnly() so the grid does not try to switch it in edit mode.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jon
Top achievements
Rank 1
answered on 09 Jun 2011, 09:45 PM
Sorry, replied to the wrong thread...
>
>I agree, this would be a nice/usable addition.  I'm looking specifically for a solution that will handle this as we need to support a user who
> will be updating a large table of data.  Having to click through with a mouse makes this inefficient.  A simple solution would be just to
> default all editable cells to the edit view.  Can this be done through a jquery call?
0
Gurpreet
Top achievements
Rank 1
answered on 30 Jun 2011, 04:45 PM
I have to do the Batch update and have a column with checkboxes and will save the value as true/ false depending on the selection.
If I set the property of the column as readonly, I manage to get the checkboxes selected but when I send the object back to controller, I'm unable to retrieve the value of the selected checkboxes.

Here is the code which I'm writing to show checkboxes in the grid

columns.Bound(x => x.Paint).Width(5).Title(

 

"Paint")

 

.ClientTemplate(

 

"<input type='checkbox' name='Paint' value= <#= Paint? checked='checked' : '' #> />")

 

.HtmlAttributes(

 

new { style = "text-align:center" });

I'm calling the controller method using the following code.

 

 

 

public ActionResult UpdateRecords([Bind(Prefix = "updated")]IEnumerable<CleaningEntitySearchResults> updatedOrders)

Please suggest where I'm doing it wrong.

Thanks a lot

 

Tags
Grid
Asked by
Guru Rao
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Jon
Top achievements
Rank 1
Gurpreet
Top achievements
Rank 1
Share this question
or