Announcement

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

    floatRange validator only works with whole numbers

    Looks like I accidentally replied to a separate thread about this on the SmartGWT board. So, I'll post here as well. The floatRange validator only works with whole numbers and not decimals. Is that something you'll be able to fix in the near future?

    #2
    What testing are you doing that's giving this impression? This sounds like a floatRange validator is being applied to a field that is declared to be of integer type.

    Comment


      #3
      From your 8.0 SDK Feature Explorer, I edited this sample:

      http://localhost:8080/isomorphic/system/reference/SmartClient_Explorer.html#validationBuiltins


      I changed the integer to a float as follows:

      Code:
      <DataSource ID="builtins">
          <fields>
              <field name="floatField" type="float" title="Float">
                  <validators>
                      <validator type="floatRange" min="1.1" max="20.1"/>
                  </validators>
              </field>
          </fields>
      </DataSource>
      When you validate that, nothing happens. If you change the min and max to whole numbers, the validation fires

      Comment


        #4
        Thanks for the bug report - this has now been fixed

        Comment

        Working...
        X