Author Topic: Filtering the case insensitive word not working  (Read 3461 times)

bsolteam

  • Pro Deluxe
  • Full Member
  • *
  • Posts: 107
    • View Profile
Filtering the case insensitive word not working
« on: June 01, 2015, 04:24:12 pm »
Hi Team,
                     I am using the Filtering for the column header.The filtering is happening only for the case sensitive letter, but not filtering for the case insensitive letter. I have gone through the demo code also , but there it is working fine for both the cases. I have some sample code what i am using please check the below code and help me for this query.

var colM = {

{ title: fleetDetails.vesselNameColTitle+" <img src='${pageContext.request.contextPath}/resources/images/arrow-us-down.png'>&nbsp;",
                  width:fleetDetails.vesselNameColWidth,
                  hight:fleetDetails.colHeight,
                 dataType:fleetDetails.colDataType,
                  dataIndx:fleetDetails.vesselNameColDataIndx,
                  sortable:fleetDetails.colSortable,
                  align:fleetDetails.vesselNameColAlign,
                  halign:fleetDetails.vesselNameColHalign,
                  resizable:fleetDetails.colresizable,
                  filter: { type: 'textbox', condition: 'begin', listeners: ['keyup'] },
}

and in object are writing the this code

 filterModel: { on: true, mode: "AND", header: true },

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Filtering the case insensitive word not working
« Reply #1 on: June 02, 2015, 10:11:32 am »
is it remote filtering?

Please also check definition of colModel which is an array that begins with [ and not {

Also verify that fleetDetails.colDataType is a string.

bsolteam

  • Pro Deluxe
  • Full Member
  • *
  • Posts: 107
    • View Profile
Re: Filtering the case insensitive word not working
« Reply #2 on: June 02, 2015, 11:29:53 am »
Hi Team,
                    Thanks for the reply,
                     I am doing the local filtering , the colM is starting with [ this symbol only. The datatype is also string only.
but still we are finding the solution for this case insensitive filtering.


Thanks,
Bsol Team.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Filtering the case insensitive word not working
« Reply #3 on: June 02, 2015, 03:22:06 pm »
Please share a jsfiddle so that I can look into it.

bsolteam

  • Pro Deluxe
  • Full Member
  • *
  • Posts: 107
    • View Profile
Re: Filtering the case insensitive word not working
« Reply #4 on: June 03, 2015, 12:34:42 pm »
Hi team,
                      Thanks for the suggestion, the issue is resolved. I was declaring the data type string itself but in that also the string was typed as String, ie 's' was in upper case letter. After that I changed to Lower case s then its working fine.



Thanks
Bsol Team,