<
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 Sub
Protected 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
>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true"/>
<handlers accessPolicy="Read, Script">
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ChartHandler" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
</handlers>
</system.webServer>
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{controller}/{resource}.axd/{*pathInfo}"); // This is new
routes.IgnoreRoute("{controller}/{action}/{resource}.axd/{*pathInfo}"); // This is new
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
}
Then I added a RadChart to the About view and bound it to an XML data file containing:
<?xml version="1.0" encoding="utf-8" ?>
<people>
<person name="Brown, William" all="20" some="50" few="25" notassessed="5" />
<person name="Edwards, Kimberly" all="30" some="45" few="20" notassessed="5" />
<person name="Evans, Sarah" all="80" some="10" few="5" notassessed="5" />
<person name="King, Elizabeth" all="25" some="35" few="35" notassessed="5" />
<person name="White, Mark" all="50" some="20" few="10" notassessed="20" />
</people>
Then I added the click hander and DataBound handler to the chart.
Then when I run the application and show the About view, The chart shows, but the click handler is not called, but other event handlers are called.
Any help would be appreciated,Thanks,
Kelly.
I have a stack column in RadGrid (shown in below image) and I want to apply sorting on the both fields of that column. For the sorting these columns I had applied my own logic and I could sort the columns but I am not able to apply color on column header and the ascending descending image which comes when we use default sorting of RadGrid.
Please tell me how to apply color and image to that column while sorting and when we sort with this stack column then the column, which we had sorted previously should get the default column header style.
Or Is there any alternative to sort the stack columns?
Please reply ASAP.
<
GroupingSettings
CaseSensitive
=
"false"
/>
<
ClientSettings
>
<
DataBinding
SelectMethod
=
"GetAllOffices"
Location
=
"UserDetails.aspx"
EnableCaching
=
"true"
FilterParameterType
=
"Linq"
/>
<
Selecting
AllowRowSelect
=
"true"
UseClientSelectColumnOnly
=
"true"
/>
</
ClientSettings
>
<
MasterTableView
>