jQWidgets Forums

jQuery UI Widgets Forums Grid PHP Server-Side Filtering & Checkbox Selection

This topic contains 5 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author

  • wizkid
    Participant

    Hi All,

    I am encountering an issue when I am trying to use checkbox selection with server-side filtering. This is similar to http://bit.ly/RRsBHZ; however, I do not understand why this user removed the filter callback function? I have some custom parameters setup in my data.php file that uses the filter callback to reload data each time.

    Here is a JSFiddle I created with an example of what should happen (notice, however, the filter call-back is removed):

    http://jsfiddle.net/kS79Z/54/

    Here is a JSFiddle where I am trying to reload the data source (data.php in my case) with the call-back function:
    The data.php is my case has some extra queries added to the WHERE statement for a CUSTOM filter.

    http://jsfiddle.net/kS79Z/55/

    To reproduce:

    – Open second JSFiddle.
    – DO NOT immediately select any checkboxes.
    – Type in some text to the jqxInput. (I know the filtering is not working in this case).
    – Now try to select a row, then update or remove text from jqxInput. Or even toggle select/clear all.

    The checkbox selection(s) will disappear and/or become null.

    What is going on here? Please advise! Thank you for any help.


    Peter Stoev
    Keymaster

    Hi wizkid,

    The problem is that you apply a client-side filter to the loaded data set and then you load another data set in the widget so your applied filter becomes invalid and that leads to invalid checkbox selection as well.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    wizkid
    Participant

    Hi Peter,

    Thanks for taking a look. I am somewhat confused on how to correctly apply the filters in the above JSFiddle server-side then? In your documentation (http://bit.ly/1otuc4v) I see that you are using built-in filters for jqxGrid, but it is not clear to me exactly how I can use another widget (i.e. jqxInput) and specify parameters (filteroperation, filterconditon, etc.) to send to data.php for server-side filtering.

    Is there anyway you can provide me with an example of such functionality? I would sincerely appreciate your support.


    Peter Stoev
    Keymaster

    Hi wizkid,

    Click the Demo item of our site’s navigation menu. There you will find section called PHP Integration with demos about using jQWidgets with PHP. One of these samples implements Server Filtering.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    wizkid
    Participant

    Hi Peter,

    I referenced that documentation in my last reply (#54500). I am asking if you or Dimitar could kindly provide a modified example of this with another widget (i.e. jqxInput) and specify parameters (filteroperation, filterconditon, etc.) to send to data.php for server-side filtering. It is not clear how to do this in the documentation.


    Peter Stoev
    Keymaster

    Hi wizkid,

    Such examples are already available and I pointed you how to reach them. Additional samples about Server Filtering are available in the download package as well in the phpdemos folder.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.