jQWidgets Forums

jQuery UI Widgets Forums Grid render grid rows

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • render grid rows #49579

    josh
    Participant

    Hi everyone,
    please can anyone help me what is rendergridrows supposed to achieve?
    I copied the demo but cant seem to customize it for my case.
    I have a json data object
    var data={{usb_data|safe}}//this is a a json object parsed into django template.
    i did this
    // load virtual data.
    var rendergridrows = function (params) {
    var data = {{usb_data|safe}};
    return data;
    }
    and on initializing the grid i did this
    $(“#jqxgrid”).jqxGrid(
    {
    width: ‘100%’,
    autoheight: true,
    source: dataAdapter,
    altrows: true,
    sortable: true,
    pageable: true,
    groupable: true,
    virtualmode: true,
    columnsresize: true,
    filterable: true,
    rendergridrows:rendergridrows,

    but it displays an empty grid
    can anyone assist me with this please?
    Regards
    Joshua

    render grid rows #49589

    Peter Stoev
    Keymaster

    Hi Joshua,

    “rendergridrows” should return a JavaScript Array of data rows. That array should take into account the start and end row indexes. Example: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/virtualdata.htm?arctic.

    Best Regards,
    Peter Stoev

    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.