Announcement

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

    $startOfxxx and $endOfxxx presets of DateRangeItem problem

    Hi,
    We are using those preset variants of DateRangeItem:
    "$startOfWeek",
    "$endOfWeek",
    "$startOfMonth",
    "$endOfMonth",
    "$startOfYear",
    "$endOfYear"
    and have got strange hint values with them.

    If you open showcase example: https://www.smartclient.com/smartcli...ateRangeFilter
    and modify if adding this code at the beginning:
    Code:
    isc.RelativeDateItem.addProperties({
        presetOptions: {
            "$startOfMonth" : "Test startOfMonth"
        }
    });
    and then run it and choose startOfMonth for both from and to fields you will get something like that:
    Click image for larger version  Name:	DateRangeProblem.png Views:	0 Size:	9.1 KB ID:	260074
    Have a look at the hints displayed - shouldn't they be the same for from and to fields?
    Thanks,
    Michalg

    #2
    There's a setting, RelativeDateItem.rangePosition, that causes automatic rounding in a DateRangeDialog, to the start of the unit for the "From" field, and to the end of the unit for the "To" field - that behavior was clobbering the rounding-direction implied by the name of the shortcut.

    We've made a change to address this in builds dated November 22 and later.
    Last edited by Isomorphic; 21 Nov 2019, 01:13.

    Comment

    Working...
    X