[CLOSED] Ext.net.FilterHeader undefined ?

  1. #1

    [CLOSED] Ext.net.FilterHeader undefined ?

    I need to apply custom filterHeader behaviour to all grids.
    If I add Ext.net.FilterHeader.behaviour.addBehaviour("strin g", {.. }) to _layout.cshtml file I got
    Cannot read property 'behaviour' of undefined error. It works fine if I add it to an individual .cshtml file.

    I like to apply it in one place, at what point this script can be invoked?
    Thanks for your advice.
    -szhang
    Last edited by fabricio.murta; Dec 04, 2017 at 9:30 PM.
  2. #2
    Hello Susan!

    You probably need to set up a Razor section that will be output after Ext.NET includes are put in place. Your code is likely running before Ext.NET scripts are included and page referenced. You may also want to use an Ext.Net.ResourcePlaceholder to ensure Ext.NET places the client-side resources before your code.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thanks! that resolved my issue.
    By the way, in you demo code :https://examples4.ext.net/#/GridPane...Filters_Local/
    Is there a way to enable default StringFilter operators(contains, start, ends..)? I am using 4.2 version.
    Thanks
    -szhang
  4. #4
    Hello Susan!

    I'm not sure I get your questions but, I do not see any operator-like entities in the documentation for String Filters.

    I believe it just matches the sentence within the full contents of every column row's corresponding cell.

    People who needed custom or specific filter to this component (and didn't want to use the FilterHeader instead) had to customize the non-documented filterFn function. Like in this thread. Well, use it at your own risk. :)

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  5. #5
    Thanks for your info! I am good for now. Please close this issue.
    Thanks!
    susan
  6. #6
    Alright, glad we could help!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Ext.net.FilterHeader
    By RaphaelSaldanha in forum 4.x Help
    Replies: 1
    Last Post: Mar 07, 2017, 2:18 AM
  2. [CLOSED] FilterHeader plugin : override Operator of Parameters["filterheader"]
    By matrixwebtech in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 17, 2015, 1:55 PM
  3. [CLOSED] FilterHeader : FilterHeader for specific columns in gridpanel
    By matrixwebtech in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 29, 2015, 12:20 PM
  4. GridPanel : FilterHeader Bug
    By brunweb in forum 2.x Help
    Replies: 7
    Last Post: Apr 01, 2014, 3:08 AM
  5. hidden FilterHeader
    By maxdiable in forum 2.x Help
    Replies: 1
    Last Post: Dec 24, 2013, 1:49 AM

Posting Permissions