This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Control Language="C#" %> | |
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %> | |
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> | |
<sf:SitefinityLabel id="titleLabel" runat="server" WrapperTagName="h2" HideIfNoText="true" CssClass="sftaxonTitle" /> | |
<sf:ConditionalTemplateContainer ID="conditionalTemplate" runat="server"> | |
<Templates> | |
<sf:ConditionalTemplate ID="ConditionalTemplate1" Left="RenderAs" Operator="Equal" Right="HorizontalList" runat="server"> | |
<asp:Repeater ID="repeater_horizontallist" runat="server"> | |
<HeaderTemplate> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected virtual RadTreeView TreeViewHierarchicalList | |
{ | |
get | |
{ | |
return this.Container.GetControl<RadTreeView>("treeview_hierarchicallist", false); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public new enum RenderTaxonomyAs | |
{ | |
HorizontalList = 0, | |
VerticalList = 1, | |
Cloud = 2, | |
HierarchicalList = 3 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override Repeater TaxaRepeater | |
{ | |
get | |
{ | |
string lower = this.RenderAs.ToString().ToLower(); | |
string str = string.Concat("repeater_", lower); | |
return this.Container.GetControl<Repeater>(str, false); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void InitializeTaxaList() | |
{ | |
if (this.RenderAs == RenderTaxonomyAs.HierarchicalList) | |
{ | |
IDictionary<ITaxon, uint> taxaItemsCountForTaxonomy = null; | |
if (this.ContentId == Guid.Empty) | |
{ | |
taxaItemsCountForTaxonomy = this.GetTaxaItemsCountForTaxonomy(); | |
} | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected internal class TaxonData | |
{ | |
public uint Count { get; set;} | |
public int Size { get; set; } | |
public string Title { get; set; } | |
public string Url { get; set; } | |
public TaxonData() | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected internal class CustomTaxonData | |
{ | |
public Guid TaxonId { get; set; } | |
public Guid? ParentTaxonId { get; set; } | |
public uint Count { get; set;} | |
public int Size { get; set; } | |
public string Title { get; set; } | |
public string Url { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private List<CustomTaxonData> CustomPrepareData(IDictionary<ITaxon, uint> taxaCount) | |
{ | |
double num; | |
if (taxaCount.Count == 0) | |
{ | |
return new List<CustomTaxonData>(); | |
} | |
List<double> list = ( | |
from pair in taxaCount | |
select pair.Value into t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.sfPublicWrapper { | |
background-color: #734848; | |
} | |
div.RadTreeView .rtMinus, | |
div.RadTreeView .rtPlus { | |
display: inline-block !important; | |
} |
OlderNewer