RadDatePicker ID Issue .

2 posts, 0 answers
  1. Prince M. Premnath
    Prince M. Premnath avatar
    32 posts
    Member since:
    Oct 2009

    Posted 12 Mar 2010 Link to this post

    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




  2. Dimo
    Admin
    Dimo avatar
    8451 posts

    Posted 12 Mar 2010 Link to this post

    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.
Back to Top