Announcement

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

    Live filtering with delay

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

    I have set listgrid.setFilterOnKeypress(true);
    And live filtering is working. Since there is a large amount of data, if i enter a letter a filtering call is fired.
    1. How can i filter after a delay of 2 sec.
    2. Is there a way, in which i filter only when user enters atleast three characters for a field.

    #2
    For 2) you could use a TextItem in LGF.setFilterEditorProperties with a setCriterionGetter() that returns null for Strings <=2 length.

    Best regards
    Blama

    Comment


      #3
      For 1) ListGrid.setFetchDelay().
      MichalG

      Comment


        #4
        Thanks Blama and michalg.
        michalg I tried using setFetchDelay() and also script>var isc_useHighPerformanceGridTimings=false;</script>.
        But it is still not applying delay, when i enter a letter. However, when i remove the entire string from filter, then it does apply the delay.

        Comment


          #5
          For 1), you just need to update - this issue was fixed for builds dated April 4 and later.

          Comment

          Working...
          X