jQWidgets Forums

jQuery UI Widgets Forums Grid Date Filtering Column

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Date Filtering Column #18858

    naatha
    Member

    Hello,

    On the following example :
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/filterrow.htm?classic

    1) How can i tell a date filter applied to Ship Date column using jquery?

    2) I apply a date filter and save the state. When i load the state back, it failed only in IE. Worked fine on Chrome and firefox.

    Thanks

    Date Filtering Column #18859

    Peter Stoev
    Keymaster

    Hi naatha,

    Regarding your questions:

    1. What do you mean by: “How can i tell a date filter applied to Ship Date column using jquery?”? Could you provide more details?
    2. In old versions of IE the date string is not parsed correctly to JavaScript Date object when the state is loaded back. This is an issue on our side and I created a work item about it. Thank you for the valuable feedback!

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Date Filtering Column #18891

    naatha
    Member

    Hi Peter,

    thanks for the reply.

    In my grid, i use filter row and i have two date columns. I have a button to save the grid state.

    But i don’t want to save the state with date column filtered. So before save the state, i want to check is there any filter applied to any of the date column.

    thanks

    Date Filtering Column #19277

    patouf89
    Member

    you should use this method which gives you informations about applied filters:

    var filtersinfo = $('#jqxGrid').jqxGrid('getfilterinformation');

    or either you could check by using a loop on each date column if any of them is filtered and then use the “removefilter” method .
    hope this helps!

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

You must be logged in to reply to this topic.