jQWidgets Forums

jQuery UI Widgets Forums Grid Grid limit

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Grid limit Posts
  • Grid limit #57023

    shashank.bargaje
    Participant

    Hello,

    I wanted to know how I could decide the grid row limit. I want to show number of grid rows depending on selection in dropdown box. Any help would be great

    Grid limit #57037

    Dimitar
    Participant

    Hello shashank.bargaje,

    There is no property for setting a grid row limit. However, if you are populating the grid from an external service, you may set the source object’s data.maxRows property so that only the specified number of rows are loaded from the server, e.g.:

    var source =
    {
        datatype: "jsonp",
        datafields: [
            { name: 'countryName' },
            { name: 'name' },
            { name: 'population', type: 'float' },
            { name: 'continentCode' }
        ],
        url: "http://ws.geonames.org/searchJSON",
        data: {
            featureClass: "P",
            style: "full",
            maxRows: 50
        },
        formatdata: function (data) {
            return "my data";
        }
    };

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.