views:

158

answers:

1

I have a EWorld timepicker server control in a Usercontrol that is in the default View of an ASP.NET MultiView control. When the page is initially loaded the time popup works fine, but when I switch the view away from and then back to the view containing the timepicker the time popup is empty.

Like so...

Illustration of empty Timepicker control

Here is the ASP.NET markup for the Timepicker control.

<ewc:TimePicker 
    ID="tpReportTime"
    runat="server"
    Nullable="true"
    MilitaryTime="true"
    MinuteInterval="FifteenMinutes"
    ShowClearTime="true"
    ImageUrl="~/images/clock.gif"
    ControlDisplay="TextBoxImage"
    DisableTextBoxEntry="false"
    DisplayUnselectableTimes="true"
    NumberOfColumns="4"
    PopupWidth="12.5em"
    Width="3.em"
    RoundUpMinutes="false"
    CssClass="time_picker_wrap"
    tooltip="HH:MM">
    <TextBoxLabelStyle CssClass="time_input" />
</ewc:TimePicker>
A: 

The problem is with this attribute's value

PopupWidth="12.5em"

Specifically the em part

When the Multiview control is changing views the Timepicker's PopupWidth attribute is reverting to it's default UnitType of Pixel. So the popup was not empty like I assumed. It was 12 pixels wide and too thin for the times to show.

If I change the value to PopupWidth="12.5px" the popup's width persists through view changes.

So why is the Timepicker doing this?

Clark