jQWidgets Forums

jQuery UI Widgets Forums General Discussions Plugins AngularJS jqxGrid: Preset filter before loading remote data in virtual mode

This topic contains 2 replies, has 2 voices, and was last updated by  badera 10 years, 2 months ago.

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

  • badera
    Participant

    I have a grid bound to remote data in virtual mode. What I need is to predefine a filter to reduce the amount of data initially requested (mainly to reduce the time to calculate the aggregates on server side).
    In which callback function of the grid do I have to define and add the filter to the grid that this filter will already take effect for the first fired ajax request?
    – In the ‘ready’ callback, it is too late: here, the grid has already sent the ajax request; adding a filter will re-fire a request with the new filter – but I do not want the initial unfiltered request.
    – ‘bindingcomplete’ is logically also too late.
    – … but which one is fired before data is requested and I do have access to the grids object to perform $scope.myGrid.addfilter(…)?
    – Setting “autobind: false”, in the source settings seem also not to do the job.

    Can you help me? – Thanks in advance!
    – badera


    Peter Stoev
    Keymaster

    Hi badera,

    As far as I know, there’s no such option in jqxGrid.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    badera
    Participant

    Do you have a tip, how to achieve this? – e.g. creating the grid without source, set the filter and assign the source later… (I did not yet tried this…)

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

You must be logged in to reply to this topic.