Posted on Sep 5, 2010 (permalink)
<
telerik:RadSiteMap
runat
=
"server"
ID
"RadSiteMap1"
DataSourceID
"SqlDataSource1"
DataFieldID
"SiteMapId"
OnNodeDataBound
"RadSiteMap1_NodeDataBound"
DataFieldParentID
"ParentID"
DataNavigateUrlField
"NavigateUrl"
DataTextField
"SiteMapTitle"
ShowNodeLines
"false"
>
DataBindings
telerik:RadSiteMapNodeBinding
NavigateUrlField
/>
</
LevelSettings
telerik:SiteMapLevelSetting
Level
"0"
ListLayout
RepeatColumns
"2"
AlignRows
"true"
asp:SqlDataSource
ConnectionString="<%$ ConnectionStrings:DefaultConnection %>"
SelectCommand="SELECT SiteMapId, ParentID, SiteMapTitle, NavigateUrl, SortOrder, SiteMapTitle as Tooltip FROM [SiteMap]">
SelectParameters
asp:Parameter
DefaultValue
"1"
Name
Type
"Int32"
protected
void
RadSiteMap1_NodeDataBound(
object
sender, RadSiteMapNodeEventArgs e)
{
DataRowView nodeData = e.Node.DataItem
as
DataRowView;
e.Node.Target =
"_self"
;
e.Node.ToolTip = nodeData[
"Tooltip"
].ToString(); ;
}
Reply
Posted on Sep 6, 2010 (permalink)
sender, Telerik.Web.UI.RadSiteMapNodeEventArgs e)
"Title"
].ToString() +
" "
Back to Top
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below