jQuery UI Widgets Forums Grid Binding a Grid

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Binding a Grid #67033

    yllsuarez
    Participant

    Hello,

    I have been trying to bind a grid.

    I just try this inside a buttom, but nothing happen.

    $(“#previous”).click(function() {
    $(“#assignedprojects”).jqxGrid( ‘source’, projectAdapter );
    $(“#assignedprojects”).jqxGrid(‘updatebounddata’, ‘cells’);
    }

    var projectsource = {
    localdata: reportedprojects,
    datafields:
    [
    { name: ‘title’ , type: ‘string’ },
    { name: ‘amount’ , type: ‘number’ }
    ],
    datatype: “array”
    };

    var projectAdapter = new $.jqx.dataAdapter( projectsource );

    $(“#assignedprojects”).jqxGrid({
    ….
    source: projectAdapter,
    …..
    });

    Binding a Grid #67066

    Dimitar
    Participant

    Hello yllsuarez,

    This is the correct way of setting properties to jqxGrid and the other widgets:

    $("#assignedprojects").jqxGrid({ source: projectAdapter });

    If you are looking for a server-side paging examples, please check one of the following help topics: Server Side Paging with jqxGrid using PHP and MySQL and Server-Side Paging with jqxGrid, ASP.NET MVC 3 and SQL.

    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.