jQuery UI Widgets Forums Grid Master Detail Example

This topic contains 2 replies, has 2 voices, and was last updated by  DavidSimmons 12 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Master Detail Example #11058

    DavidSimmons
    Participant

    I have been trying to understand your Master Detail Example to convert it for mysql. I am definitely getting lost. I would really appreciate some help on creating a mysql version. The area I am struggling with is the following.

    sourceA
    dataAdapterA

    sourceB
    var dataAdapter = new $.jqx.dataAdapter(source);
    dataAdapter.dataBind();
    $(“#customersGrid”).bind(‘rowselect’, function (event) {
    var customerID = event.args.row.CustomerID;
    var records = new Array();
    var length = dataAdapter.records.length;
    for (var i = 0; i < length; i++) {
    var record = dataAdapter.records[i];
    if (record.CustomerID == customerID) {
    records[records.length] = record;
    }
    }
    var dataSource = {
    datafields: dataFields,
    localdata: records
    }
    var adapter = new $.jqx.dataAdapter(dataSource);

    // update data source.
    $("#ordersGrid").jqxGrid({ source: adapter });
    });

    Master Detail Example #11063

    Peter Stoev
    Keymaster

    There’s already such example with PHP and MySQL in the phpdemos folder included in the download package.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Master Detail Example #11073

    DavidSimmons
    Participant

    Thanks..

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

You must be logged in to reply to this topic.