jQWidgets Forums

jQuery UI Widgets Forums Grid Using createfilterwidget and default values

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

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

  • pit007
    Member

    Hi,

    I’d like to use jqxGrid with createfilterwidget and default values, which I found in a forum thread some while ago.

    I use this code to add filterwidgets to jqxGrid’s columns:

    createfilterwidget: function (column, columnelement, widget) {
    setTimeout(function () {
    widget.val(4711);
    },

    Unfortunately when the application first starts, the default values are displayed in the grid’s cells,
    the initial request call to processdata via jqxDataAdapter does not take into account the filters’ initial values.
    So initial data in the grid is not valid at startup.

    If I leave out the call to setTimeout in the definition of createfilterwidget, no default values are shown at all.

    How can I have both: initial values and correct data in the grid???
    How can I access the filter widgets’ values from within ‘processdata’???

    Incidentally I could’nt find any documentation on ‘createfilterwidget’ and the jqwidgets forum is not searchable by
    topic.

    Thanx for you help,
    Peter


    Dimitar
    Participant

    Hello pit007,

    Using createfilterwidget is not appropriate for initial filtering. You should apply a filter instead, as shown in the Filtering demo. As for the documentation, you can find more information for createfilterwidget in the API Documentation of jqxGrid, under columns.

    The forum can be searched by selecting Topics in the Dashboard – there is a search field in the top right corner.

    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.