The documentation seems to point out that you can use NodeTemplates when using a DataSource, but if I have a SiteMap declaritvely populated how can define a Node template and use the Text value of the Node in the template?
Code sample (see the bold black text - this is where the telerik documentation would use the databinder to bind to a datasource, but I just want to be able to determine how the node with the text value is represented. I could just type it in I guess? ):
Regards,
Jacques
Code sample (see the bold black text - this is where the telerik documentation would use the databinder to bind to a datasource, but I just want to be able to determine how the node with the text value is represented. I could just type it in I guess? ):
<
telerik:RadSiteMap
ID
=
"SiteMap"
CssClass
=
"subNavSiteMap"
runat
=
"server"
EnableEmbeddedBaseStylesheet
=
"False"
EnableEmbeddedSkins
=
"False"
>
<
LevelSettings
>
<
telerik:SiteMapLevelSetting
Level
=
"0"
ListLayout-RepeatColumns
=
"3"
ListLayout-RepeatDirection
=
"Horizontal"
>
</
telerik:SiteMapLevelSetting
>
</
LevelSettings
>
<
Nodes
>
<
telerik:RadSiteMapNode
Text
=
"Menu 1"
runat
=
"server"
>
<
NodeTemplate
>
<
h3
class
=
"Header"
>
[show the text from the SiteMapeNode: Menu 1]</
h3
>
</
NodeTemplate
>
<
Nodes
>
<
telerik:RadSiteMapNode
Text
=
"SubMenu 1"
NavigateUrl
=
""
runat
=
"server"
>
</
telerik:RadSiteMapNode
>
<
telerik:RadSiteMapNode
Text
=
"SubMenu 2"
runat
=
"server"
>
</
telerik:RadSiteMapNode
>
<
telerik:RadSiteMapNode
Text
=
"SubMenu 3"
runat
=
"server"
>
</
telerik:RadSiteMapNode
>
<
telerik:RadSiteMapNode
Text
=
"SubMenu 4"
runat
=
"server"
>
</
telerik:RadSiteMapNode
>
</
Nodes
>
</
telerik:RadSiteMapNode
>
<
telerik:RadSiteMapNode
Text
=
"Menu 2"
runat
=
"server"
>
<
Nodes
>
<
telerik:RadSiteMapNode
Text
=
"SubMenu 1"
runat
=
"server"
>
</
telerik:RadSiteMapNode
>
<
telerik:RadSiteMapNode
Text
=
"SubMenu 2"
runat
=
"server"
>
</
telerik:RadSiteMapNode
>
<
telerik:RadSiteMapNode
Text
=
"SubMenu 3"
runat
=
"server"
>
</
telerik:RadSiteMapNode
>
<
telerik:RadSiteMapNode
Text
=
"SubMenu 4"
runat
=
"server"
>
</
telerik:RadSiteMapNode
>
<
telerik:RadSiteMapNode
Text
=
"SubMenu 5"
runat
=
"server"
>
</
telerik:RadSiteMapNode
>
</
Nodes
>
</
telerik:RadSiteMapNode
>
</
Nodes
>
</
telerik:RadSiteMap
>
Regards,
Jacques