Kendo Grid take and Skip Parameters for Jquery Load

2 posts, 0 answers
  1. Rajendra
    Rajendra avatar
    9 posts
    Member since:
    Feb 2015

    Posted 25 Feb 2016 Link to this post

    I am loading the Kendo grid  with Jquery Ajax call as following.  I am trying add Paging to Grid Unable  but do not know where put the Paging info because data is loaded from Jquery.  Where and how should   pass the parameter take and Skip Parameters ? 

     var srchResuls = function () {

                        url: "/Default.aspx/Getserachres",
                        type: "post",
                        dataType: "json",
                        contentType: "application/json; charset=utf-8",
                        success: function (result) {
                            searchResults = result;
                    }).done(function () {
                        var dataSource = new{
                            data: searchResults.d,
                            schema: {
                                model: {
                                    id: "DOCK_ACTIVITY_ID",
                                    fields: {
                                        DOCK_ACTIVITY_ID: { type: "number", editable: false },
                                        LOC_ABBR: { type: "string", editable: true },
                                        // BatchId :{ editable: true, nullable: true },
                                        SHIPPER_ACCT_NBR: { type: "number", editable: false },
                                        ORDER_ID: { type: "number", editable: false },
                                        VESSEL_VIN: { type: "string" },
                                        CUSTOMER_PT: { type: "string" }

                        var grid = $('#srchgrd').data("kendoGrid");
                    //    grid.change=rowselected;

  2. Rosen
    Rosen avatar
    3253 posts

    Posted 29 Feb 2016 Link to this post

    Hello Rajendra,

    With the setup shown in the provided code snippet, it is only possible to use in-memory operations. If you need to handle operations such as paging, sorting, filtering etc. on the server data should be supplied via the DataSource transport.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top