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

Dynamic RadDatePicker

1 Answer 73 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Paul Gallen
Top achievements
Rank 1
Paul Gallen asked on 04 Aug 2008, 04:48 PM

Hi,

When I create a dynamic RadDatePicker and the page has finished its rendering cycle, an error is generated with the following message:-
 

Line 173 Error: Expected':'

When I debug the offending line, it reads,


 

Sys.Application.add_init(

function() {

$create(Telerik.Web.UI.RadCalendar, {

"_DayRenderChangedDays":{},"_FormatInfoArray":[["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["January","February","March","April","May","June","July","August","September","October","November","December",],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",],"dd MMMM yyyy HH:mm:ss","dd MMMM yyyy","HH:mm:ss","dd MMMM","ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","dd/MM/yyyy","HH:mm","yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","MMMM yyyy","AM","PM","/",":",1],"_ViewRepeatableDays":{},"_ViewsHash":{31_calendar_Top : [[2008,8,1], 1]},"_calendarWeekRule":0,"_firstDayOfWeek":7,"_postBackCall":"__doPostBack(\u002731$calendar\u0027,\u0027@@\u0027)","clientStateFieldID":"31_calendar_ClientState","enabled":true,"monthYearNavigationSettings":["Today","OK","Cancel","Date is out of range.","False"],"skin":"Office2007","specialDaysArray":[],"stylesHash":{DayStyle: ["", "radCalDefault_Office2007"],CalendarTableStyle: ["", "TableLayout_Office2007"],OtherMonthDayStyle: ["", "otherMonth_Office2007"],TitleStyle: ["", "titlebar_Office2007"],SelectedDayStyle: ["", "radCalSelect_Office2007"],SelectorStyle: ["", "DaysOfWeek_Office2007"],DisabledDayStyle: ["", "radCalDisable_Office2007"],OutOfRangeDayStyle: ["", "outOfRange_Office2007"],WeekendDayStyle: ["", "radCalWeekendDefault_Office2007"],DayOverStyle: ["", "radCalHover_Office2007"],FastNavigationStyle: ["", "MonthYearFastNav_Office2007"]}}, null, null, $get("31_calendar"));

I have other rad controls which are dynamic but cause no issues


Thanks

P

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 05 Aug 2008, 12:34 PM
Hello Paul,

Can you please provide the code, which is used to create the picker - the aspx markup where the control is added, as well as the code used to dynamically create it and add it to the page.

Kind regards,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Paul Gallen
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or