MVC Telerik Grid - How to submit all rows on update

3 posts, 0 answers
  1. Fabio
    Fabio avatar
    5 posts
    Member since:
    Oct 2012

    Posted 05 Jun 2014 Link to this post

    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. Fabio
    Fabio avatar
    5 posts
    Member since:
    Oct 2012

    Posted 06 Jun 2014 Link to this post

    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');
                    }
            }
        }


  3. Domenico
    Domenico avatar
    3 posts
    Member since:
    Apr 2012

    Posted 09 Sep Link to this post

    Who is calling that javascript function?
Back to Top