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

[Solved] Telerik Grid MVC2 Client Methods "updateRow"

1 Answer 36 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.
hady
Top achievements
Rank 1
hady asked on 11 Apr 2012, 07:04 AM
Please can you provide me a full example on how to implement the updateRow method in order to update a specific row. I am not finding a full one in the demos or in the documentation.

This is my code:

var grid = $(GridId).data('tGrid');
var row = $(GridId + " .t-grid-edit-row");
grid.updateRow(row);

 

in the grid configuration i am setting also the ajax databinding action:

.DataBinding(dataBinding =>
{
    dataBinding.Ajax()
       .Update("_SaveAjaxEditing", "Controller");
})
The UpdateRow Method is not sending any request to the server.
I want a sample of code including the controller code also.
Thank you
 

1 Answer, 1 is accepted

Sort by
0
Hugo
Top achievements
Rank 1
answered on 21 May 2013, 01:03 PM
I can't seem to get this to work either...

I want a check all type of control....

function checkAllItems(gridId) {
    var grid = $("#" + gridId).data("tGrid");
    if (grid == null) {
        return;
    }
 
    grid.data.forEach(function (row) {
        row.Mapped = true;
        grid.updateRow(row);
    });
 
}

.cshtml

 columns.Bound(m => m.Mapped).Width(80)
          .ClientTemplate("<img style='width:15px; height:15px; vertical-align:middle' src='<#=Mapped ? \""
+ Url.Content("~/Content/Images/Symbol Check.png") + "\" : \""
+ Url.Content("~/Content/Images/Symbol Delete.png") + "\" #>' alt=''/>");
Tags
Grid
Asked by
hady
Top achievements
Rank 1
Answers by
Hugo
Top achievements
Rank 1
Share this question
or