Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Filter float value

    Hi ,

    I have a field in my grid which is of type float , as mentioned in the ds.xml file as:
    <field name="test" type="localeFloat" decimalPad="2"/>

    Now when i want to filter the data entering data like 23 , it takes that as 23.00 while expected is to show all data having 23 in it like 2333/242333/2323

    Is this the expected behaviour considering the data type and if that is so , do we have a workaround to achieve the filtering as required?

    #2
    Use AdvancedCriteria and specify the iContains operator.

    Comment


      #3
      Hi,
      I tried the same and on the field i applied:

      listPriceField.setFilterOperator(OperatorId.ICONTAINS);

      in this case , filter is working in required manner but when i enter something on the top most field where we enter the value to be filtered , it filters the data but the value entered is cleared/vanished.

      Please advice.

      Comment


        #4
        Try it with the latest patched version. If you still have an issue, create a minimal, ready-to-run test case and we can take a look.

        Comment

        Working...
        X