or
Once button on the form is clicked, the grid is groupped with something like:
GridGroupByExpression expression =
new
GridGroupByExpression();
expression.SelectFields.Add(
new
GridGroupByField
{
FieldName =
"orderNumber"
,
HeaderText =
"Order"
,
FormatString =
"<strong>{0}</strong>"
});
myGgrid.MasterTableView.GroupByExpressions.Add(expression);
}
<
telerik:RadScheduler
ID
=
"sched"
SelectedDate
=
"1/2/2000"
runat
=
"server"
ShowHeader
=
"false"
AllowDelete
=
"false"
AllowEdit
=
"false"
AllowInsert
=
"false"
FirstDayOfWeek
=
"Sunday"
ReadOnly
=
"true"
SelectedView
=
"WeekView"
ShowAllDayRow
=
"true"
ShowViewTabs
=
"false"
DataDescriptionField
=
"Description"
DataEndField
=
"EndTime"
DataStartField
=
"StartTime"
DataSubjectField
=
"Name"
DataKeyField
=
"Key"
Height
=
"100%"
RowHeight
=
"17px"
ShowFooter
=
"false"
OnClientNavigationCommand
=
"NavigationCommand"
Localization-AllDay
=
"Online"
Width
=
"100%"
>
<
WeekView
ColumnHeaderDateFormat
=
"ddd"
ReadOnly
=
"true"
EnableExactTimeRendering
=
"true"
/>
<
ExportSettings
OpenInNewWindow
=
"true"
FileName
=
"Scheduler"
>
<
Pdf
PageTitle
=
"Schedule"
Author
=
"Telerik"
Creator
=
"Telerik"
Title
=
"Schedule"
PageHeight
=
"8.5in"
PageWidth
=
"11in"
/>
</
ExportSettings
>
</
telerik:RadScheduler
>
When I try to switch between views on my scheduler I get the following Java error and the scheduler does not render, It works fine untill i switch between day, week or month views.
as follows
Microsoft JScript runtime error: '0._preInitialized' is null or not an object
Failes in the followin JS script
Telerik.Web.UI.RadScheduler._preInitialize=
function(_10d,_10e,_10f,_110,_111){
var _112=$("#"+_10d);
if(_112[0]._preInitialized==true&&!$telerik.isIE){
return;
}
line in bold is where the error happens.
I assume I must not have set somthing but just cant find it.
Julian
Expression of type 'System.Nullable`1[System.DateTime]'
cannot be used for parameter of type 'System.Object'
of method 'System.String Concat(System.Object, System.Object)'
<
telerik:GridCalculatedColumn
UniqueName
=
"Timings"
HeaderText
=
"Timings"
DataType
=
"System.DateTime"
DataFields
=
"StartTime, EndTime"
Expression
=
'{0} + " " + "-" + "; " + {1}'
DataFormatString
=
"{0:hh:mm tt}"
/>
<
telerik:GridCalculatedColumn
UniqueName
=
"Rates"
HeaderText
=
"Rates"
DataType
=
"System.Decimal"
DataFields
=
"Rate, RatePlus"
Expression
=
'{0} + " " + "+" + "; " + {1}'
DataFormatString
=
"{0:C2}"
/>