Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
930
TotalRecordsCount
posted

Hello

Converted igGrid from Asp .net MVC to Asp .net Core.

Earlier there used to be a TotalRecordsCount member in the GridPaging feature.

Mentioned here https://es.infragistics.com/community/forums/f/ignite-ui-for-jquery/74927/server-side-paging/379131#379131

Now this member is not found

How to specify TotalRecordsCount in the initial load of the grid with gridpaging enabled.

Need asap

Thanks

Parents
No Data
Reply
  • 1300
    Offline posted

    Hello Abhishek,

    After investigating this further, I have determined that the property recordCountKey could be set in order to specify the total number of records in the data source. However, the data should have an extra property which holds the real row count and recordCountKey should be set to this property. This could be achieved as follows:

    {

        "shippings": [{"ShipName": "Vins et alcools Chevalier", "ShipAddress" : "59 rue de lu0027Abbaye",

        "ShipCity" : "Reims"},

        {"ShipName": "Vins et alcools Chevalier", "ShipAddress" : "59 rue de lu0027Abbaye", "ShipCity" : "Reims"}

    ], "TotalRecordsCount": 20

    }

    $("#grid").igGrid({

          . . .

          features: [ {

                 name: "Paging",

                 recordCountKey: "TotalRecordsCount"

          }]

    });

    Please test it on your side and let me know if you need any further information regarding this matter.

    Regards,
    Monika Kirkova,
    Infragistics

Children