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

Telerik Rad Data picker fring Javascript Error.

1 Answer 22 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
chandu mahi
Top achievements
Rank 1
chandu mahi asked on 24 Jun 2010, 11:14 PM
Hi,
I am using Rad Calendar. 2.2.8 .o version.  I am using it as a pick the data from calendar.
It works fine. But when i select data & hit  the Submit Button Javascript errors are firing. I am using simple code only.
My Javascript error shows Object Expected.
When i remove Rad Calendar i am not getting Java script error. Why ?

I am copying my code below. Please respond to my post.

 

<rad:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Default"

 

 

SkinsPath="~/RadControls/Calendar/Skins/" ToolTip="Select Date"

 

 

MinDate="01/01/1900" MaxDate="12/31/2100" DateInput-EmptyMessage = "- Select Date -" >

 

 

<Calendar runat="server" Skin="Default" SkinsPath="~/RadControls/Calendar/Skins/" >

 

 

<ClientEvents />

 

 

</Calendar>

 

 

 

</rad:RadDatePicker>

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 25 Jun 2010, 09:42 AM
Hello Chandu,

Your DatePicker declaration works as expected on a standalone page. Please inspect your implementation for any other causes for the error. If you need further assistance, please send a complete runnable demo.

<%@ Page Language="C#" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>RadControls</title>
</head>
<body>
<form id="form1" runat="server">
 
<rad:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Default" SkinsPath="~/RadControls/Calendar/Skins/"
    ToolTip="Select Date" MinDate="01/01/1900" MaxDate="12/31/2100" DateInput-EmptyMessage="- Select Date -">
    <Calendar runat="server" Skin="Default" SkinsPath="~/RadControls/Calendar/Skins/">
        <ClientEvents />
    </Calendar>
</rad:RadDatePicker>
 
<asp:Button ID="Button1" runat="server" Text="Submit" />
 
</form>
</body>
</html>


Kind regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
chandu mahi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or