Ext.net.FilterHeader

  1. #1

    Ext.net.FilterHeader

    On Ext.net.FilterHeader.getStrValue it invokes value.toLowerCase() but if the value is not a string, a number for instance, an exception will be thrown

    getStrValue: function (value) {
    	return Ext.net.FilterHeader.behaviour.getOption("caseSensitive") || !value || Ext.net.FilterHeader.behaviour.isRemote() ? value : value.toLowerCase();
    }
    A possible fix is converting the value to string: value.toString().toLowerCase()
  2. #2
    Hello Raphael!..

    Not sure, if the field is not a string, that method should not be called at all... I mean, if that's a numeric data column, this method should throw an error nevertheless. I'm not sure in which context you triggered this issue though.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [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
  2. [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
  3. [CLOSED] Filterheader and getRowsValues
    By leonardm in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: May 26, 2014, 5:53 AM
  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