This is a migrated thread and some comments may be shown as answers.

Hiding DateInput

4 Answers 70 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 07 Jan 2008, 03:35 PM
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.

4 Answers, 1 is accepted

Sort by
0
Petja
Telerik team
answered on 07 Jan 2008, 04:06 PM
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
0
John Brownell
Top achievements
Rank 1
answered on 03 Mar 2008, 10:57 PM
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
0
Konstantin Petkov
Telerik team
answered on 04 Mar 2008, 09:38 AM
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
0
John Brownell
Top achievements
Rank 1
answered on 04 Mar 2008, 08:14 PM
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
Tags
Calendar
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Petja
Telerik team
John Brownell
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or