The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

[CLOSED] TemplateColumn and FilterHeader Plugin

  1. #1

    [CLOSED] TemplateColumn and FilterHeader Plugin

    Hello.
    Referring to this example I would like to add a FilterHeader Plugin to the grid.

    I added this line
    <Plugins><ext:FilterHeader></ext:FilterHeader></Plugins>
    Other columns' filter works, but I'm not able to make the filter work through the TemplateColumn.

    Do you think there is a way to search inside an html template?

    Thank you!
    Last edited by fabricio.murta; Mar 01, 2018 at 5:26 PM.
  2. #2
    Hello @bbros!

    I believe you would need to make a custom filter but, as the template column is actually a kind of equivalent to a custom renderer in an ordinary column, you'd need to repeat the math every record (if your formatting involves printing data derived from various actual record fields) during the tests.

    For more efficient filtering maybe pre-processing the data displayed in the template column and turning it into a simple column (maybe with a template just for coloring and other formatting that shouldn't affect the filters) should be the way to go. This way the data shown in the column will be effectively in the store, thus being filterable, sortable, and so on.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    ok thanks.
    you can mark it as closed.
    I'll put another textbox outside the grid with a custom filter over the store.
  4. #4
    Hello @bbros! Thanks for your feedback, I hope the information provided helped!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 3
    Last Post: Apr 17, 2015, 1:55 PM
  2. Replies: 1
    Last Post: Nov 10, 2014, 12:58 PM
  3. Default values in FilterHeader Plugin
    By iomega55 in forum 2.x Help
    Replies: 1
    Last Post: Oct 14, 2014, 1:44 PM
  4. Hide/Show FilterHeader Plugin
    By ADV in forum 2.x Help
    Replies: 2
    Last Post: Dec 24, 2013, 1:46 AM
  5. [CLOSED] FilterHeader Plugin Error
    By leonardm in forum 2.x Premium Help
    Replies: 2
    Last Post: Aug 21, 2013, 4:53 PM

Posting Permissions