private void AjaxifySelf() {
RadAjaxManager ajaxManager = (RadAjaxManager)Page.FindControl("RadAjaxManager1");
ajaxManager.AjaxSettings.AddAjaxSetting(
this.FindControl("grvUserLogs"), this);
}
<
body>
<form id="form1" runat="server">
<div id="FormDiv" style="width:100%; height:100%; border:solid ,1,gray">
<radA:RadAjaxManager ID="RadAjaxManager1" runat="server" >
<AjaxSettings>
<radA:AjaxSetting AjaxControlID="RadMenu1">
<UpdatedControls>
<radA:AjaxUpdatedControl ControlID="TopContentPanel" />
</UpdatedControls>
</radA:AjaxSetting>
<radA:AjaxSetting AjaxControlID="Radmenu2">
<UpdatedControls>
<radA:AjaxUpdatedControl ControlID="BottomContentPanel" />
</UpdatedControls>
</radA:AjaxSetting>
</AjaxSettings>
</radA:RadAjaxManager>
<asp:Panel
ID="TopNavPanel"
runat="server"
CssClass="TopNavPanel"
ScrollBars="Auto">
<radp:RadPanelbar ID="RadPanelbar1" runat="server" Width="190px"
Skin="Outlook" height="100%" >
<Items>
<radp:RadPanelItem Text="DM Admin" runat="server"
Expanded="true" Width="100%" BorderStyle="none">
<Items>
<radp:RadPanelItem runat="server" >
<ItemTemplate>
<radm:RadMenu ID="RadMenu1"
runat="server"
Flow="Vertical" Width="100%" Height="100%"
>
<Items>
<radm:RadMenuItem ID="TabbedUCtl"
runat="server"
BackColor="#404040" ForeColor="Silver"
Text="TabbedUCtl"
Width="100%" >
<GroupSettings ExpandDirection="Down"
Width="90px" />
</radm:RadMenuItem>
the CodeBehind is basic,..uses properties for SelectedUCtl as per most of the Telerik Examples..RadAjaxManager1_ResolveUpdatedControls
protected void Page_Load(object sender, EventArgs e)
{
//Recreacte the user control for each page-lifecycle since we are adding it dynamically to the page
LoadUserControl(
this.selectedUC);
}
public void LoadUserControl(string userControl)
{
//Load user control onto page
Control selectedUserControl = Page.LoadControl(userControl);
//Generate an Unique ID based the control path
string uniqueID = this.selectedUC.Split('.')[0];
uniqueID = uniqueID.Replace(
"/", "").Replace("~", "");
selectedUserControl.ID = uniqueID;
//Load control into Required Panel
//...and prevent controls from being loaded twice..weird error,..??
if (TopContentPanel.FindControl(selectedUserControl.ID) == null)
{
TopContentPanel.Controls.Add(selectedUserControl);
}
}
public void ReloadUserControl()
{
//Loads the UCtl from the Property,...usually set from the UCtl..hence Public property
TopContentPanel.Controls.Clear();
LoadUserControl(
this.selectedUC);
}
RadScheduler1.TimeZoneOffset = TimeZoneInfo.Local.BaseUtcOffset ' (Australia est melb)
RadScheduler1.SelectedView = Telerik.Web.UI.SchedulerViewType.WeekView
RadScheduler1.SelectedDate = Now.ToUniversalTime.Date
RadScheduler1.WeekView.HeaderDateFormat =
"dd MMM yyyy"
And when displayed , the selected date is Tomorrow ie not today
Are we missing something here.
We need to set the timezone as we have multiple users which we are trying to support in different timezones.
Any help is appreciated
Regards
Andrei