jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter filtering records in DataAdapter

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  dima72 10 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • filtering records in DataAdapter #68907

    dima72
    Participant

    Dear All,

    how to implement subj?

    thanks,

    filtering records in DataAdapter #68908

    Peter Stoev
    Keymaster

    Hi dima72,

    There’s no built-in functionality for filtering dataAdapter’s records. You can access the records by using dataAdapter.records – this returns Array.

    Best Regards,
    Peter Stoev

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

    filtering records in DataAdapter #68911

    dima72
    Participant

    OK,
    i just care that such approach looks clumsy

    var dataAdapter = new $.jqx.dataAdapter(source, {
    loadComplete: function () {
    // get data records.
    var records = dataAdapter.records;
    var length = records.length;
    for (var i = 0; i < length; i++)
    {
    var record = records[i];
    if( selectedId == record.Name )
    {
    $(“#inptProfileName”).jqxInput(‘val’, record.Name);
    $(“#inpt1”).jqxInput(‘val’, record.LeftHand);
    $(“#inpt2”).jqxInput(‘val’, record.RightHand);
    $(“#inpt3”).jqxInput(‘val’, record.RightFTPSettings);

    }

    }

    thank you!

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

You must be logged in to reply to this topic.