jQWidgets Forums

jQuery UI Widgets Forums Grid Change date format when get filtering information

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 1 month ago.

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

  • Huseyn
    Participant

    Want change date format when get filtering information.
    From: Sun Mar 06 2016 00:00:00 GMT+0400 (Azerbaijan Standard Time)
    To: 06.03.2016

    var filterGroups = $(‘#jqxgrid’).jqxGrid(‘getfilterinformation’);
    var info = “”;
    for (var i = 0; i < filterGroups.length; i++) {
    var filterGroup = filterGroups[i];
    info += “Filter Column: ” + filterGroup.filtercolumn;
    var filters = filterGroup.filter.getfilters();
    for (var j = 0; j < filters.length; j++) {
    info += “\nFilter: “;
    info += “\nValue: ” + filters[j].value;
    info += “\nCondition: ” + filters[j].condition;
    info += “\nOperator: ” + filters[j].operator;
    }
    }


    Dimitar
    Participant

    Hello Huseyn,

    I guess you mean the date returned in filters[j].value. Please note that you can set the cellsformat of your filtered date column to affect this. You can also try the following:

    $.jqx.formatDate(new Date(filters[j].value), 'dd.MM.yyyy')

    Best Regards,
    Dimitar

    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.