Announcement

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

    PresetDateRangeItem always shows "Custom..." even though no criteria preset is selected

    Hi,
    When using PresetDateRangeItem together with showCustomOption, there is initailly shown "Custom Date Range" option title.
    If you select null option (or use item.clearValue()) and then do filtering, "Custom Date Range" is displayed again even though no preset criteria option is selected.
    Click image for larger version

Name:	CustomPreset.gif
Views:	12
Size:	420.4 KB
ID:	264992
    Is it intentional?
    Can I somehow make it display nothing if none option is selected?
    Thanks,
    MichalG
    Version: 12.1p 2021-03-21 (Showcase)

    #2
    This item deals with criteria objects, and it was incorrectly mapping null item-value to the customOption, because the customOption has null criteria initially.

    Fixed for builds dated March 25 and later.

    Comment


      #3
      Tested in SmartClient Version: SNAPSHOT_v13.0d_2021-03-25/LGPL.
      Thank you.
      MichalG

      Comment

      Working...
      X