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

RadDatePicker - Expected':' error

7 Answers 57 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
dev79
Top achievements
Rank 1
dev79 asked on 18 Dec 2008, 08:02 PM
I keep getting the following error when adding the RadDatePicker control:

Expected ':'


 

<tr>

 

 

<td style="width: 20px"><asp:Label ID="lbl_fromDate" runat="server" Text="From: "></asp:Label></td>

 

 

<td>

 

 

<telerik:RadDatePicker ID="RadDatePicker1" runat="server" />

 

 

</td>

 

 

</tr>

 

7 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Dec 2008, 08:33 AM
Hi dev79,

Thanks for the code snippet. However, it is not enough to reproduce the problem, so please, provide a more complete example.

Greetings,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
dev79
Top achievements
Rank 1
answered on 19 Dec 2008, 02:21 PM

 

Hello - Thanks for responding.  Here is the table I have, the combo box is working fine without a problem, so I'm not sure why the calendar isn't popping up.  I see the textbox and the icon to click on, but I get that error once I click on it...

<
table >

 

 

<tr>

 

 

<td style="width: 70px">

 

 

&nbsp;

 

 

<asp:Label ID="lbl_FY" runat="server" Text="FY: "></asp:Label>

 

 

</td>

 

 

<td style="width: 60px">

 

 

<telerik:RadComboBox ID="RadComboBox1" Skin="Office2007" runat="server" Width="50px">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="2009" Value="2009"/>

 

 

<telerik:RadComboBoxItem Text="2008" Value="2008"/>

 

 

<telerik:RadComboBoxItem Text="2007" Value="2007"/>

 

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</td>
<tr>

 

 

<tr>

 

 

 

 

<td style="width: 20px"><asp:Label ID="lbl_fromDate" runat="server" Text="From: "></asp:Label></td>

 

 

 

 

<td>

 

 

 

 

<telerik:RadDatePicker ID="RadDatePicker1" runat="server" />

 

 

 

 

</td>

 

 

 

 

</tr>
</table>

 

0
Dimo
Telerik team
answered on 19 Dec 2008, 08:28 PM
Hello dev79,

I suppose I did not express myself very clearly. What I meant by a "more complete example" was a complete web page, which reproduces the problem in a standalone project. The provided markup surely does not trigger the error, because it contains nothing but the controls in a simple scenario (nevertheless, I tested just to make 100% sure).

Also, please specify which version of RadControls you are using.

Here is my test page, which does not trigger Javascript errors:


<%@ Page Language="C#" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
<title>RadControls for ASP.NET AJAX</title> 
</head> 
<body> 
<form id="form1" runat="server"
<asp:ScriptManager ID="ScriptManager1" runat="server" /> 
 
    <table> 
        <tr> 
            <td style="width: 70px"
                &nbsp; 
                <asp:Label ID="lbl_FY" runat="server" Text="FY: "></asp:Label> 
            </td> 
            <td style="width: 60px"
                <telerik:RadComboBox ID="RadComboBox1" Skin="Office2007" runat="server" Width="50px"
                    <Items> 
                        <telerik:RadComboBoxItem Text="2009" Value="2009" /> 
                        <telerik:RadComboBoxItem Text="2008" Value="2008" /> 
                        <telerik:RadComboBoxItem Text="2007" Value="2007" /> 
                    </Items> 
                </telerik:RadComboBox> 
            </td> 
        </tr> 
        <tr> 
            <td style="width: 20px"
                <asp:Label ID="lbl_fromDate" runat="server" Text="From: "></asp:Label></td
            <td> 
                <telerik:RadDatePicker ID="RadDatePicker1" runat="server" /> 
            </td> 
        </tr> 
    </table>  
 
</form> 
</body> 
</html> 
 


Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
dev79
Top achievements
Rank 1
answered on 22 Dec 2008, 01:52 PM

<%

@ Control Language="C#" AutoEventWireup="true" CodeFile="FRC_Trans1_USGGL.ascx.cs" Inherits="Widgets_FRC_Trans1" %

 

<%

@ register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

 

<

telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server">

 

 

 

<table >

 

 

<tr>

 

 

<td style="width: 70px">

 

 

&nbsp;

 

 

<asp:Label ID="lbl_FY" runat="server" Text="FY: "></asp:Label>

 

 

</td>

 

 

<td style="width: 60px">

 

 

<telerik:RadComboBox ID="RadComboBox1" Skin="Office2007" runat="server" Width="50px">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="2009" Value="2009" />

 

 

<telerik:RadComboBoxItem Text="2008" Value="2008" />

 

 

<telerik:RadComboBoxItem Text="2007" Value="2007" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</td>

 

 

 

<td style="width: 20px"><asp:Label ID="lbl_FRC" runat="server" Text="FRC: "></asp:Label>

 

 

</td>

 

 

<td style="width: 100px"><asp:TextBox Width="35px" ID="txt_FRC" runat="server"></asp:TextBox>

 

 

</td>

 

 

<td style="width: 20px"><asp:Label ID="lbl_USSGL" runat="server" Text="USSGL: "></asp:Label>

 

 

</td>

 

 

<td style="width: 100px"><asp:TextBox Width="65px" ID="txt_ussgl" runat="server"></asp:TextBox>

 

 

</td>

 

 

 

</tr>

 

 

<tr>

 

 

<td style="width: 20px"><asp:Label ID="lbl_fromDate" runat="server" Text="From: "></asp:Label></td>

 

 

<td style="width: 100px"><asp:TextBox Width="65px" ID="txt_fromDate" runat="server"></asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td style="width: 20px; height: 21px;"><asp:Label ID="lbl_toDate" runat="server" Text="To: "></asp:Label></td>

 

 

<td style="width: 100px"><asp:TextBox Width="65px" ID="txt_toDate" runat="server"></asp:TextBox></td>

 

 

</tr>

 

 

 

<tr>

 

 

<td style="width: 20px">

 

 

<asp:TextBox ID="txt_PW_ID" Width="20px" runat="server" Visible="false"></asp:TextBox><asp:Button ID="btn_FRC_Grid" runat="server" Text="Query" OnClick="btn_FRC_Grid_Click" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<asp:Label ID="lbl_execstatus" runat="server" Text=""></asp:Label>

 

 

<telerik:RadGrid EnableViewState="false" AllowSorting="false" AllowPaging="true" PageSize="10" ID="RadGrid1" runat="server" Skin="Office2007" AutoGenerateColumns="false" OnItemDataBound="frc_drill_Grid_ItemDataBound" DataSourceID="gridSource">

 

<

MasterTableView>

 

<

Columns>

 

<

telerik:GridBoundColumn DataField="FY" HeaderText="FY" ReadOnly="True" SortExpression="FY"

 

 

UniqueName="FY" >

 

 

<HeaderStyle HorizontalAlign="Center" Width="25px" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridHyperLinkColumn DataTextField="FRC" HeaderText="FRC" SortExpression="FRC"

 

 

DataNavigateUrlFields="txt_fromDate, txt_toDate,HIS_USSGL_ACNT1, FRC, FY" Target="New" DataNavigateUrlFormatString="doc_hist_frc_ussgl_drill.aspx?from={0}&to={1}&ussgl={2}&frc={3}&fy={4}"

 

 

>

 

 

</telerik:GridHyperLinkColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="From" DataField="HIS_LAST_ACTION_DT" SortExpression="HIS_LAST_ACTION_DT" UniqueName="HIS_LAST_ACTION_DT"

 

 

>

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

<ItemStyle HorizontalAlign="Right" />

 

 

</telerik:GridBoundColumn>

 

 

 

 

<telerik:GridBoundColumn HeaderText="Acct1" DataField="HIS_USSGL_ACNT1" SortExpression="HIS_USSGL_ACNT1" UniqueName="HIS_USSGL_ACNT1"

 

 

>

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

<ItemStyle HorizontalAlign="Right" />

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Acct2" DataField="HIS_USSGL_ACNT1" SortExpression="HIS_USSGL_ACNT2" UniqueName="HIS_USSGL_ACNT2"

 

 

>

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

<ItemStyle HorizontalAlign="Right" />

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Acct3" DataField="HIS_USSGL_ACNT1" SortExpression="HIS_USSGL_ACNT3" UniqueName="HIS_USSGL_ACNT3"

 

 

>

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

<ItemStyle HorizontalAlign="Right" />

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Acct4" DataField="HIS_USSGL_ACNT1" SortExpression="HIS_USSGL_ACNT4" UniqueName="HIS_USSGL_ACNT4"

 

 

>

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

<ItemStyle HorizontalAlign="Right" />

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Acct5" DataField="HIS_USSGL_ACNT1" SortExpression="HIS_USSGL_ACNT5" UniqueName="HIS_USSGL_ACNT5"

 

 

>

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

<ItemStyle HorizontalAlign="Right" />

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Acct6" DataField="HIS_USSGL_ACNT1" SortExpression="HIS_USSGL_ACNT6" UniqueName="HIS_USSGL_ACNT6"

 

 

>

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

<ItemStyle HorizontalAlign="Right" />

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Acct7" DataField="HIS_USSGL_ACNT1" SortExpression="HIS_USSGL_ACNT7" UniqueName="HIS_USSGL_ACNT7"

 

 

>

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

<ItemStyle HorizontalAlign="Right" />

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Acct8" DataField="HIS_USSGL_ACNT1" SortExpression="HIS_USSGL_ACNT8" UniqueName="HIS_USSGL_ACNT8"

 

 

>

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

<ItemStyle HorizontalAlign="Right" />

 

 

</telerik:GridBoundColumn>

 

 

 

</

Columns>

 

</

MasterTableView>

 

</

telerik:RadGrid>

 

<

telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

 

 

Width="75px" IsSticky="False">

 

 

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>'

 

 

style="border: 0px;" />

 

</

telerik:RadAjaxLoadingPanel>

 

 

</

telerik:RadAjaxPanel>

 

&nbsp;

<

div style="text-align: left">

 

 

&nbsp;</div>

 

 

 

 

<

asp:SqlDataSource ID="gridSource" runat="server" ConnectionString="Data Source=ONR-SQL;Initial Catalog=Code0824;Persist Security Info=True;User ID=;Password="></asp:SqlDataSource>

 

0
Dimo
Telerik team
answered on 23 Dec 2008, 06:25 AM
Hi dev79,

I don't see any RadDatePickers in the provided user control. I added two pickers myself (in the user control and the main page) and they both work as expected.

If you still have troubles with this, I suggest that you open a new formal support ticket and attach a simple runnable web project, which reproduces the error.

Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
dev79
Top achievements
Rank 1
answered on 13 Jan 2009, 04:14 PM
Dimo - I'm using RadControls for ASPNET AJAX Q3 2008
0
Dimo
Telerik team
answered on 13 Jan 2009, 04:23 PM
Hello,

I still need a complete runnable example in order to provide further assistance. Thanks.

Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Calendar
Asked by
dev79
Top achievements
Rank 1
Answers by
Dimo
Telerik team
dev79
Top achievements
Rank 1
Share this question
or