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

[Solved] RadDatePicker ID Issue .

1 Answer 84 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Prince M. Premnath
Top achievements
Rank 2
Prince M. Premnath asked on 12 Mar 2010, 01:04 PM
Hello all ,

 I have create a Dynamic RadDatePicker Using the following code

 RadDatePicker _DatePicker = new RadDatePicker();
        //_DatePicker.ID = "MileStone" + _iIndexCount.ToString() + ":" + _iMileStoneId.ToString() + ":ColumnName:" + _ColumnName.ToString();
        _DatePicker.ID = "M" + _iMileStoneId.ToString() + ":" + _ColumnName.ToString();
        _DatePicker.Calendar.ID = "C" + _iMileStoneId.ToString() + ":" + _ColumnName.ToString();
        _DatePicker.DateInput.ID = "D" + _iMileStoneId.ToString() + ":" + _ColumnName.ToString();

later i will be adding the DatePicker to a table cell , while loading the page , am getting some javascript error saying "}" expected , if i comment this line

        _DatePicker.ID = "M" + _iMileStoneId.ToString() + ":" + _ColumnName.ToString();
things are alllright , wht iam doing wrong ?

Thanks
-Prince




1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Mar 2010, 03:57 PM
Hello Prince,

Colons (":") are not valid characters in an HTML attribute, please do not use them.

All the best,
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
Calendar
Asked by
Prince M. Premnath
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or