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

MVC Telerik Grid - How to submit all rows on update

2 Answers 77 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.
Fabio
Top achievements
Rank 1
Fabio asked on 05 Jun 2014, 05:30 PM
I need to have all rows in a telerik grid hit my controller on grid.submit().
Currently only the rows edited by the user manually are being submitted.

Thank you.

2 Answers, 1 is accepted

Sort by
0
Fabio
Top achievements
Rank 1
answered on 06 Jun 2014, 08:17 PM
I found the answer:

function ModuleAccessGridHasChanges() {
        var grid = $("#ModuleAccessGrid").data("tGrid");
        if (grid != null) {
                var additionalValues = grid.data;
                if (!$.telerik.trigger(grid.element, 'submitChanges', { values: additionalValues })) {
                    grid.sendValues($.extend({}, additionalValues), 'updateUrl', 'submitChanges');
                }
        }
    }


0
Domenico
Top achievements
Rank 1
answered on 09 Sep 2016, 02:25 PM
Who is calling that javascript function?
Tags
General Discussions
Asked by
Fabio
Top achievements
Rank 1
Answers by
Fabio
Top achievements
Rank 1
Domenico
Top achievements
Rank 1
Share this question
or