jQWidgets Forums

jQuery UI Widgets Forums Grid Initialize date in datefilter

Tagged: 

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Initialize date in datefilter #56630

    yarby
    Participant

    Hello,

    Congratulations for your works. I use a jqxgrid with a datefilter on a column. The default date of the calendar is the date of the day. How can I change this default value.
    Thanks

    Initialize date in datefilter #56631

    Peter Stoev
    Keymaster

    Hi yarby,

    I think that this can be achieved by using the “createfilterwidget” callback function in case of Filter Row. Please, look at: http://jsfiddle.net/nZL4d/

    Best Regards,
    Peter Stoev

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

    Initialize date in datefilter #56632

    yarby
    Participant

    Waouh, what reactivity !!
    Thanks a lot, I tried the createfilterwidget like this :

    createfilterwidget: function (column, columnElement, widget) {
    widget.jqxDateTimeInput({ value: “2013, 1, 1” });
    // OR
    widget.jqxDateTimeInput(‘setDate’, “2013, 1, 1” ));
    }
    But it didn’t work, and i don’t understand why not ?

    Thanks for your help, i think I’d never find the answer.

    Initialize date in datefilter #56633

    Peter Stoev
    Keymaster

    Hi yarby,

    Did you look at my working sample? It sets the Date and note that “setDate” is not expected for Date Range filter. “setRange” is expected in that case.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.