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

    Error when changing HourItem's titleOrientation in DateChooser

    SmartClient Version: v9.1p_2015-09-16/Pro Development Only (built 2015-09-16)
    Browser Chrome: Version 47.0.2526.111 m

    We would like to edit the DateChooser to have the TimeItem items display horizontally. The items consist of the hour item and minute item. Currently the hour title and minute title are above their respective combo box. The desired outcome would be to have them displayed side-by-side. When attempting to change the hourItem's titleOrientation property to "left", the following error pops up:

    Error evaluating your changes:
    ErrorType: TypeError
    ErrorMessage: this.getTitleVAlign is not a function
    I suspect it should be using getTitleAlign if left-oriented, instead of getTitleVAlign? Would this be considered a bug?

        showTimeItem: true,
    Last edited by shresthg_des; 25 Jan 2016, 10:15.

    This is not currently a supported layout for these controls. The problem is that your setting of titleOrientation means a column in the internal form layout will be required for the title, and the control assumes there is no such column.


      Do you know if this will be supported in a later version of SmartClient?

      I am not sure if I understand why it is unsupported. Is there something different in the form in DateChooser compared to a SelectItem in a form? There are examples of those horizontally aligned ( If possible, may you suggest an alternative solution to achieve similar result?


        Again, the sizing code here makes an assumption that there is no column dedicated to the title, both within this form and for the layout of the DateChooser as a whole. We're not sure why you're interested in this change in title orientation, as it's just less compact and seems altogether worse - that's why we didn't try to support it initially and have no current plans to add support for it.

        If you for some reason *really* think it's a lot better, the Feature Sponsorship program would be a way to get it done.