TimePicker doesnt display times

2 posts, 0 answers
  1. Xi
    Xi avatar
    5 posts
    Member since:
    May 2008

    Posted 25 Jun 2008 Link to this post

    I have a TimePicker in my page, but when I press the select time button it displays a blank menu, although it is still possible to change the time
    <telerik:RadTimePicker ID="StartTimePicker" runat="server" Width="150px" Skin="Vista" FocusedDate="2008-06-25"  
                        SelectedDate="2008-06-16"
                    <TimePopupButton CssClass=""></TimePopupButton> 
                    <TimeView Skin="Vista"><HeaderTemplate> 
                    Time Picker 
                    </HeaderTemplate> 
                    <TimeTemplate> 
                    <runat="server" href="#" onclick="return false"></a> 
                    </TimeTemplate> 
                    </TimeView> 
                    <DateInput Width="" LabelCssClass="" InvalidStyleDuration="100" Skin="Vista"></DateInput> 
                    <Calendar UseRowHeadersAsSelectors="True" UseColumnHeadersAsSelectors="True" Skin="Vista"></Calendar> 
                    <DatePopupButton CssClass="" Visible="False"></DatePopupButton> 
                    </Telerik:RadTimePicker> 

  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 26 Jun 2008 Link to this post

    Hi Xi,

    The overridden TimeTemplate is the reason for the issue:

    <TimeTemplate>  
                    <runat="server" href="#" onclick="return false"></a>  
                    </TimeTemplate>  

    Please, see how to configure the TimeTemplate in the docs here as well as review the demo below:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Calendar/Examples/DateTimePicker/Templates/DefaultCS.aspx

    I hope this helps!

    Kind regards,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top