Hiding DateInput

5 posts, 0 answers
  1. Ricardo
    Ricardo avatar
    6 posts
    Member since:
    Nov 2007

    Posted 07 Jan 2008 Link to this post

    I am trying to hide the dateinput of the radcalendar control but when I do I get a javascript error (Invalid Operation) telling me that the dateinput does not exist. Have someone experienced this ? Is there a workaround? All I do is setting the datinput-visible to false. Thanks.
  2. Petja
    Admin
    Petja avatar
    631 posts

    Posted 07 Jan 2008 Link to this post

    Hi Ricardo,

    Excuse us for this inconvenience.
    Please, hide the DateInput control by the following code.
    <telerik:RadDatePicker ID="RDP1" runat="server" Width="20px"
        <DateInput style="display:none"></DateInput> 
    </telerik:RadDatePicker> 

    Your Telerik points are updated.

    Regards,
    Petja
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. John Brownell
    John Brownell avatar
    26 posts
    Member since:
    Apr 2007

    Posted 03 Mar 2008 Link to this post

    This same thing happens in the DateTimePicker control when control.TimeView.Visible = false

    Is there a way to set the visibility of the TimeView part dynamically in a codebehind without throwing a javascript error?

    Thanks!
    John
    Pyron Technologies
  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 04 Mar 2008 Link to this post

    Hello John,

    You can dynamically show or hide the TimeView element client-side:

    http://www.telerik.com/demos/aspnet/Calendar/Examples/DateTimePicker/ClientAPI/DefaultCS.aspx


    I hope this is an applicable solution for you.

    All the best,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. John Brownell
    John Brownell avatar
    26 posts
    Member since:
    Apr 2007

    Posted 04 Mar 2008 Link to this post

    This doesn't really answer my question/problem - but I didn't really explain very well. I started a new thread to more accurately describe the issue.

    Click here to go to the new thread.

    Thank you.
    John
    Pyron Technologies
Back to Top