or
<
telerik:RadScheduler
ID
=
"RadScheduler1"
runat
=
"server"
Skin
=
"WebBlue"
ShowViewTabs
=
"False"
onformcreated
=
"RadScheduler1_FormCreated"
onappointmentcommand
=
"RadScheduler1_AppointmentCommand"
onappointmentcreated
=
"RadScheduler1_AppointmentCreated"
onappointmentdelete
=
"RadScheduler1_AppointmentDelete"
ShowHoursColumn
=
"False"
>
<
MonthView
VisibleAppointmentsPerDay
=
"30"
AdaptiveRowHeight
=
"true"
/>
<
AppointmentTemplate
>
<
div
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text
=
"Label"
></
asp:Label
>
</
div
>
</
AppointmentTemplate
>
<
InlineInsertTemplate
>
<
div
>
</
div
>
<
table
>
<
tr
>
<
td
>
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
>
</
telerik:RadComboBox
>
<
asp:LinkButton
ID
=
"InsertButton"
runat
=
"server"
CommandName
=
"Insert"
Text
=
"Agregar"
></
asp:LinkButton
>
</
td
>
</
tr
>
</
table
>
</
InlineInsertTemplate
>
</
telerik:RadScheduler
>
Following piece of code giving me error, please see screen shot attached.UIHelpers.SetSessionVariable("_isNewDates", false);
if (RadCalendar1.SelectedDates != UIHelpers.CovertFromArrayList((ArrayList)UIHelpers.GetSessionVariable("_oldDates", new ArrayList())))
{
UIHelpers.SetSessionVariable("_isNewDates", true);
}
UIHelpers.SetSessionVariable("_oldDates", UIHelpers.CovertToArrayList(RadCalendar1.SelectedDates));
Check this link for exact error as I took this screenshot
I just implement RadCalendar instead of my ASP.net Calendar and hope someone can help me.
<
asp:ScriptManager
id
=
"ScriptManager"
runat
=
"server"
EnableHistory
=
"true"
EnablePageMethods
=
"false"
EnablePartialRendering
=
"true"
EnableScriptGlobalization
=
"true"
EnableScriptLocalization
=
"true"
/>
<
asp:ScriptManagerProxy
ID
=
"wsScriptManagerProxy"
runat
=
"server"
OnNavigate
=
"ScriptManager_Navigate"
/>
private
static
string
pageKey =
"p"
;
protected
void
ScriptManager_Navigate(
object
sender, HistoryEventArgs e)
{
if
(e.State.Count <= 0)
{
// Setup default state
workspaceGrid.MasterTableView.CurrentPageIndex = 0;
return
;
}
string
key = e.State.AllKeys[0];
string
state = String.Empty;
if
(String.Equals(key, pageKey))
{
state = e.State[key];
int
pageIndex =
int
.Parse(state);
workspaceGrid.MasterTableView.CurrentPageIndex = pageIndex;
workspaceGrid.MasterTableView.Rebind();
}
}
protected
void
workspaceGrid_PageIndexChanged(
object
sender, GridPageChangedEventArgs e)
{
//string state = (sender as RadGrid).MasterTableView.CurrentPageIndex.ToString();
string
state = e.NewPageIndex.ToString();
ScriptManager.GetCurrent(
this
.Page).AddHistoryPoint(pageKey, state);
}
public
DataTable ProductsTable
{
get
{
DataTable res = (DataTable)
this
.Session[
"ProductsTable"
];
if
(res ==
null
)
{
res = DataSourceHelperCS.GetDataTable(
"SELECT [ProductID], [ProductName], [Discontinued] FROM [Products]"
);
this
.Session[
"ProductsTable"
] = res;
}
return
res;
}
}