Access input elements in GridPanel FilterHeader

  1. #1

    Access input elements in GridPanel FilterHeader

    Hi,

    I have a FilterHeader on my grid with custom input elements (textbox, combobox, two datepickers for range filtering) in the HeaderItems, like this:
    Html.X().Column()
              .DataIndex("Type")
              .Text("Type")
              .Tag("TypeId")
              .HeaderItems(i => i.Add(Html.X().ComboBox()
                  .ID("TypeSelect")
                  .DisplayField("Description")
                  ...
              ...
    I would like to implement a filter clearing feature. There is no clearFilters() function and I could not yet come up with a method to access these elements. (Of course I could ID them all and go through them, but I would prefer a more general solution).

    Any help is much appreciated!

    Thanks!
  2. #2
    Hi

    What about to use FilterHeader plugin?
    https://examples2.ext.net/#/GridPane...ader/Overview/
  3. #3
    Thanks Vladimir, it works quite well. Though as I mentioned, I needed to use extra controls such as two datepickers in the header for date range filtering. Unfortunately, only the 'from' datepicker is emptied by the clearFilter() call.
    So my main question remains: Is there any way to access these controls placed in the header?
  4. #4
    You can use custom field like in the following sample
    https://examples2.ext.net/#/GridPane.../Custom_Field/

    and implement own 'reset' method (like 'getValue' override for custom field in that sample)

Similar Threads

  1. GridPanel : FilterHeader Bug
    By brunweb in forum 2.x Help
    Replies: 7
    Last Post: Apr 01, 2014, 3:08 AM
  2. hidden FilterHeader
    By maxdiable in forum 2.x Help
    Replies: 1
    Last Post: Dec 24, 2013, 1:49 AM
  3. Replies: 1
    Last Post: Nov 23, 2013, 3:09 PM
  4. Replies: 4
    Last Post: Apr 19, 2012, 10:42 AM
  5. [CLOSED] SpinnerField lose user input in groupingview of gridpanel
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 22, 2011, 3:37 PM

Tags for this Thread

Posting Permissions