The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sitefinity" %>
<
sitefinity:ResourceLinks
id
=
"resourcesLinks"
runat
=
"server"
>
<
sitefinity:ResourceFile
Name
=
"Styles/Treeview.css"
/>
<
sitefinity:ResourceFile
Name
=
"Styles/Window.css"
/>
</
sitefinity:ResourceLinks
>
<
div
class
=
"sfChooseList"
>
<
asp:Label
ID
=
"selectorTitle"
runat
=
"server"
></
asp:Label
>
<
ul
id
=
"rootSelector"
runat
=
"server"
class
=
"sfRadioList"
>
<
li
>
<
asp:RadioButton
ID
=
"rootRadio"
runat
=
"server"
Checked
=
"true"
GroupName
=
"rootSelector"
/>
<
asp:Label
ID
=
"rootRadioLabel"
runat
=
"server"
AssociatedControlID
=
"rootRadio"
></
asp:Label
>
</
li
>
<
li
>
<
asp:RadioButton
ID
=
"taxaRadio"
runat
=
"server"
GroupName
=
"rootSelector"
/>
<
asp:Label
ID
=
"taxaRadioLabel"
runat
=
"server"
AssociatedControlID
=
"taxaRadio"
></
asp:Label
>
</
li
>
</
ul
>
<
div
id
=
"treePanel"
runat
=
"server"
>
<
telerik:RadTreeView
id
=
"taxaTree"
runat
=
"server"
ShowLineImages
=
"false"
CheckBoxes
=
"true"
Skin
=
"Sitefinity"
ExpandAnimation-Type
=
"None"
CollapseAnimation-Type
=
"None"
/>
<
sitefinity:RadTreeBinder
id
=
"taxaTreeBinder"
runat
=
"server"
ServiceUrl
=
"~/Sitefinity/Services/Taxonomies/HierarchicalTaxon.svc/{0}/"
ServiceChildItemsBaseUrl
=
"~/Sitefinity/Services/Taxonomies/HierarchicalTaxon.svc/subtaxa/"
ServicePredecessorBaseUrl
=
"~/Sitefinity/Services/Taxonomies/HierarchicalTaxon.svc/predecessor/"
TargetId
=
"taxaTree"
ParentDataKeyName
=
"ParentTaxonId"
DataKeyNames
=
"Id"
DataMembers
=
"Title"
BindOnLoad
=
"false"
>
<
containers
>
<
sitefinity:BinderContainer
runat
=
"server"
RenderContainer
=
"false"
>
<
span
>{{ Title }}</
span
>
<
span
class
=
"sf_binderLocalization_showIfLanguageUnavailable"
>({$LocalizationResources, NotTranslated$})</
span
>
</
sitefinity:BinderContainer
>
</
containers
>
</
sitefinity:RadTreeBinder
>
</
div
>
<
asp:LinkButton
ID
=
"createTaxonButton"
runat
=
"server"
OnClientClick
=
"return false;"
CssClass
=
"sfCreateTaxonBtn"
></
asp:LinkButton
>
<
asp:LinkButton
ID
=
"doneButton"
runat
=
"server"
OnClientClick
=
"return false;"
CssClass
=
"sfLinkBtn sfChange"
>
<
strong
class
=
"sfLinkBtnIn"
>
<
asp:Literal
runat
=
"server"
ID
=
"Literal1"
Text="<%$Resources:Labels, Done %>" /></
strong
>
</
asp:LinkButton
>
</
div
>
<
telerik:RadWindow
id
=
"newTaxonDialog"
runat
=
"server"
Skin
=
"Sitefinity"
Behaviors
=
"Close"
AutoSizeBehaviors
=
"Width,Height"
VisibleTitlebar
=
"true"
VisibleStatusbar
=
"false"
Modal
=
"true"
Width
=
"395"
ShowContentDuringLoad
=
"false"
Height
=
"250"
>
</
telerik:RadWindow
>
<
script
type
=
"text/javascript"
>
var updateClientState = Telerik.Web.UI.RadWebControl.prototype.updateClientState;
Telerik.Web.UI.RadTreeView.prototype.updateClientState = function () {
updateClientState.apply(this, arguments);
var clientStateField = $get(this.get_clientStateFieldID());
clientStateField.value = clientStateField.value.replace(/</
ig
, "<");
}
</script>
<
telerik:RadTreeView
id
=
"taxaTree"
runat
=
"server"
OnClientNodeChecked
=
"clientNodeChecked"
ShowLineImages
=
"false"
CheckBoxes
=
"true"
Skin
=
"Sitefinity"
ExpandAnimation-Type
=
"None"
CollapseAnimation-Type
=
"None"
/>
<script type=
"text/javascript"
>
function
clientNodeChecked(sender, eventArgs) {
var
node = eventArgs.get_node();
if
(node.get_checked()) {
while
(node.get_parent().set_checked !=
null
) {
node.get_parent().set_checked(
true
);
node = node.get_parent();
}
}
}
</script>
Boyan Barnev is a Principal Information Developer at Progress. His mission is to demonstrate the unlimited capabilities of Sitefinity CMS via product documentation, SDK samples, and technical blog posts. He has graduated from the American University in Bulgaria and joined Telerik in 2011. Since then Boyan has held various positions in the company, leading the strategy and operation of the Sitefinity CMS Technical support service worldwide.
Let our experts teach you how to use Sitefinity's best-in-class features to deliver compelling digital experiences.
Learn MoreSubscribe to get all the news, info and tutorials you need to build better business apps and sites
Progress collects the Personal Information set out in our Privacy Policy and the Supplemental Privacy notice for residents of California and other US States and uses it for the purposes stated in that policy.
You can also ask us not to share your Personal Information to third parties here: Do Not Sell or Share My Info
We see that you have already chosen to receive marketing materials from us. If you wish to change this at any time you may do so by clicking here.
Thank you for your continued interest in Progress. Based on either your previous activity on our websites or our ongoing relationship, we will keep you updated on our products, solutions, services, company news and events. If you decide that you want to be removed from our mailing lists at any time, you can change your contact preferences by clicking here.