Skip to content

Instantly share code, notes, and snippets.

@grumpycatsaysno
Last active February 9, 2016 12:23
Show Gist options
  • Save grumpycatsaysno/557ebb39fc378eda8db2 to your computer and use it in GitHub Desktop.
Save grumpycatsaysno/557ebb39fc378eda8db2 to your computer and use it in GitHub Desktop.
ConfigureTreeViewHierarchicalListControl method
private void ConfigureTreeViewHierarchicalListControl(List<CustomTaxonData> taxonDatas)
{
this.TreeViewHierarchicalList.Skin = "BlackMetroTouch";
this.TreeViewHierarchicalList.ExpandAnimation.Type = AnimationType.InQuart;
this.TreeViewHierarchicalList.ExpandAnimation.Duration = 300;
this.TreeViewHierarchicalList.CollapseAnimation.Type = AnimationType.InQuart;
this.TreeViewHierarchicalList.CollapseAnimation.Duration = 200;
this.TreeViewHierarchicalList.DataSource = taxonDatas;
this.TreeViewHierarchicalList.DataFieldID = "TaxonId";
this.TreeViewHierarchicalList.DataFieldParentID = "ParentTaxonId";
this.TreeViewHierarchicalList.DataNavigateUrlField = "Url";
this.TreeViewHierarchicalList.DataTextField = "Title";
this.TreeViewHierarchicalList.DataBind();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment