or
| 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>
|

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>DEMO</title></head><body class="BODY"> <form id="Form1" method="post" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="400" Width="700"> <telerik:RadPane ID="RadPane1" runat="server" Width="150">Left Pane<br /> <a href="http://bing.com" target="<%= contentPane.ClientID%>">Open bing.com</a><br /> <a href="http://www.cnn.com/" target="<%= contentPane.ClientID%>">Open cnn.com</a> </telerik:RadPane> <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward" /> <telerik:RadPane ID="contentPane" runat="server" ContentUrl="http://blogs.telerik.com" /> </telerik:RadSplitter> </form></body></html>
Protected Sub rttm_AjaxUpdate(ByVal sender As Object, ByVal e As ToolTipUpdateEventArgs) If e.TargetControlID.Contains("imgRotator") Then If IsNumeric(e.Value) Then End If End If End SubProtected Sub radRotator_ItemDataBound(ByVal sender As Object, ByVal e As RadRotatorEventArgs) Handles radRotator.ItemDataBound Dim hidLogisticProductKey As HiddenField = e.Item.FindControl("hidLogisticProductKey") Dim imgRotator As System.Web.UI.WebControls.Image = e.Item.FindControl("imgRotator") Dim nProductKey As Integer = Convert.ToInt32(hidLogisticProductKey.Value) rttm.TargetControls.Add(imgRotator.ClientID, nProductKey, True) End Sub<telerik:RadToolTipManager ID="rttm" Skin="Windows7" RelativeTo="Element" ShowEvent="OnMouseOver" Width="100" Height="100" Position="TopRight" OnAjaxUpdate="rttm_AjaxUpdate" ViewStateMode="Disabled" runat="server"> </telerik:RadToolTipManager> <asp:Label ID="lblProductDescriptionTooltip" ViewStateMode="Disabled" runat="server"></asp:Label> <telerik:RadRotator ID="radRotator" Width="500" ScrollDirection="Right" RotatorType="AutomaticAdvance" ScrollDuration="1000" FrameDuration="500" runat="server" Height="100px"> <ItemTemplate> <div> <asp:Image ID="imgRotator" runat="server" ImageAlign="Middle" Style="margin: 2px" ImageUrl='<%# GetImage(Container.DataItem) %>' Height="100px" Width="100px" /> <asp:HiddenField ID="hidLogisticProductKey" Value='<%# Bind("LogisticProductKey") %>' runat="server" /> </div> </ItemTemplate> </telerik:RadRotator>