or
It is important that my CallingPages can both get/set properties in the AdvancedWindow (which I could do with QueryString parameters and return arguments) and respond to events from controls in the AdvancedWindow. As an example,. the AdvancedWindow contains a RadListView and I need the CallingPages to handle the OnNeedDataSource event.
I'd be grateful for any help/suggestions.
--
Stuart
protected void homeBtn_Click(object sender, EventArgs e)
{
ControlPath = "Mainpage.ascx";
LoadUserControl();
homeBtnH4.Attributes.Add("class", "activem");
eventBtnH4.Attributes.Remove("class");
}
private void LoadUserControl()
{
if (!string.IsNullOrEmpty(ControlPath))
{
placeHolder1.Controls.Clear();
UserControl uc = (UserControl)LoadControl(ControlPath);
placeHolder1.Controls.Add(uc);
}
}
public string ControlPath
{
get
{
if (ViewState["controlPath"] != null)
return Convert.ToString(ViewState["controlPath"]);
else
return null;
}
set
{
ViewState["controlPath"] = value;
}
}
<
div
class
=
"contentholder"
id
=
"updatepanel"
runat
=
"server"
>
<
asp:PlaceHolder
ID
=
"placeHolder1"
runat
=
"server"
></
asp:PlaceHolder
>
</
div
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"homeBtn"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"updatepanel"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
>
</
telerik:AjaxUpdatedControl
>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
Skin
=
"Default"
>
</
telerik:RadAjaxLoadingPanel
>
RadScheduler1.AppointmentComparer = new AppointmentComparer(); |
public class AppointmentComparer : IComparer<Appointment> |
{ |
#region Constructors |
public AppointmentComparer() |
{ |
} |
#endregion |
int System.Collections.Generic.IComparer<Telerik.Web.UI.Appointment>.Compare(Appointment first, Appointment second) |
{ |
SO THAT unhandeled (system) exceptions get automatically logged to ELMAH table and System Error page is displayed when an such exception occurs.
Can anybody give solution for this?
<
LayoutTemplate
>
<
telerik:
ID
=
"RadDataPagerTop"
runat
=
"server"
IsTotalItemCountFixed
=
"True"
Skin
=
"Windows7"
Width
=
"752px"
CssClass
=
"Custom"
>
<
Fields
>
<
telerik:RadDataPagerButtonField
FieldType
=
"FirstPrev"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"Numeric"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"NextLast"
/>
<
telerik:RadDataPagerTemplatePageField
>
<
PagerTemplate
>
<
div
style
=
"float: right"
>
Displaying items
<
asp:Label
runat
=
"server"
ID
=
"CurrentPageLabel"
Text="<%# Container.Owner.StartRowIndex + 1 %>" />
to
<
asp:Label
runat
=
"server"
ID
=
"TotalPagesLabel"
Text="<%# (Container.Owner.TotalRowCount < Container.Owner.StartRowIndex + Container.Owner.PageSize)?Container.Owner.TotalRowCount:Container.Owner.StartRowIndex + Container.Owner.PageSize %>" />
of
<
asp:Label
runat
=
"server"
ID
=
"TotalItemsLabel"
Text="<%# Container.Owner.TotalRowCount %>" />
</
div
>
</
PagerTemplate
>
</
telerik:RadDataPagerTemplatePageField
>
</
Fields
>
</
telerik:RadDataPager
>
|