Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
UltraComboEditor Styling and Set Time
posted

Hi,

I am pretty sure i am not the first one to ask, but i realy need a snippet code changing all the Gray areas (Drop Down Title, Drop Down Title buttons, and Selected Date Background) to be changed to some other color, please look at the attached picture and advise.

My second issue is I want the user to set not only date but time, both from The box and drop down(i guess second option is impossible, but i am trying anyway... :)), should i set a Mask? Will the Time be displayed near the date?

  • 37774
    posted

    I don't think that there is anything exposed via code that will let you change the appearance of the .NET MonthCalendar that the UltraDateTimeEditor uses.  There are, however, a couple UIRoles exposed in AppStylist called DotNetMonthDropDown and DotNetMonthDropDownTitle that can be used to control some aspects of the appearance; you can find these roles in the StyleExplorer's Roles tab, under UI Roles -> Base.

    As for being able to select the time, there is no way to accomplish this via that dropdown portion, but you could certainly specify a MaskInput of something like "mm/dd/yyyy hh:mm:ss" to allow the user to enter the time.

    You also might want to look into the UltraCalendarCombo if you want more customizability over the appearance, though I do not think that that control has mask support.

    -Matt