jQWidgets Forums

jQuery UI Widgets Forums Grid dataAdapter data filter

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • dataAdapter data filter #5550

    SRK
    Participant

    Does dataAdapter support find method?

    like as below which was given in one of the Demo url : “http://www.jqwidgets.com/jquery-widgets-demo/#demos/jqxgrid/nestedgrids.htm”

    var ordersbyid = $(orders).find(‘EmployeeID:contains(‘ + id + ‘)’);
    in the above code snippet “orders” data is from XML.

    if not, how to filter the data with in the dataAdapter to get array of records.

    Regards,
    /SRK

    dataAdapter data filter #5555

    Peter Stoev
    Keymaster

    Hi SRK,

    jqxDataAdapter does not have find method. You can create a new array and then you can manually loop through the jqxDataAdapter’s records by using its ‘records’ property. In the loop, decide which data items pass your criteria and which not and save those that pass the criteria in the new array.

    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.