Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Save listgrid filter state

    Hi,

    Version: SmartClient Version: v11.0p_2017-02-11/PowerEdition Deployment (built 2017-02-11)

    I have a listgrid. I need to save the filter state and on drawing the listgrid again set the filter state to saved state.
    But i need only the filters applied in filter editor not those that are set maunally using criteria.
    getFilterEditorCriteria() gives the entire advanced criteria object. What can i use?
    Also, do i need to call filterData for setting the criteria?

    #2
    Hi swatiagarwal,

    please see this thread, where I ask a similar thing. It also includes my base implementation (still without filter state).
    To capture filterRow state, use a addFilterEditorSubmitHandler.

    Best regards
    Blama

    Comment


      #3
      Use implicitCriteria for your non-editable criteria and then the criteria retrieved via getFilterEditorCriteria() won't have anything but user inputs.

      Apply the criteria back in the same way: implicitCriteria for non-editable criteria, setFilterEditorCriteria() for the rest. Then call filterByEditor() to kick off the initial fetch including criteria in the FilterEditor.

      Comment

      Working...
      X