Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Simple request related to "DateRangeDialog"

$
0
0
Hi, could you add please the "showPickerTimeItem" property in the "DateRangeDialog" item? It should apply to the "from" and "to" date choosers.

Actually I have done this trick:

Code:

isc.DateRangeDialog.addProperties({
  show: function () {
    var fromField = this.rangeForm.items[0].fromField,
        toField = this.rangeForm.items[0].toField;
    if (this.showPickerTimeItem) {
      fromField.showPickerTimeItem = true;
      toField.showPickerTimeItem = true;
    } else {
      fromField.showPickerTimeItem = false;
      toField.showPickerTimeItem = false;
    }
    this.Super('show', arguments);
  }
});

but I don't like the idea of modify directly the 'show' function of DateRangeDialog because it could cause me problems in future SC upgrades. Also, we use our own class inherited from it, but we can not do the trick in it because we are modifying a 2nd level object, so we are modifying the parent (and this is what we want to avoid).

I cannot do it myself in deeper levels (DateRangeItem, RelativeDateItem, ...) because the constructors are not accesible (_contructor)

Thanks and regards.

Viewing all articles
Browse latest Browse all 4756

Trending Articles