protected virtual void OnAfterItemExpand(TreeListItemEventArgs e) { if (AfterItemExpand != null) { AfterItemExpand(this, e); } }
protected virtual void OnItemDoubleClick(TreeListItemEventArgs e) { if (ItemDoubleClick != null) { ItemDoubleClick(this, e); } }
protected virtual void OnAfterItemCollapse(TreeListItemEventArgs e) { if (AfterItemCollapse != null) { AfterItemCollapse(this, e); } }
protected virtual void OnDemandLoad(TreeListItemEventArgs e) { if (DemandLoad != null) { DemandLoad(this, e); } }
protected virtual void OnAfterItemCheckChange(TreeListItemEventArgs e) { if (AfterItemCheckChange != null) { AfterItemCheckChange(this, e); } }
protected internal void RaiseAfterItemExpandEvent(TreeListItem item) { var e = new TreeListItemEventArgs { Item = item }; OnAfterItemExpand(e); }
protected internal void RaiseDamanLoadEvent(TreeListItem item) { var e = new TreeListItemEventArgs { Item = item }; OnDemandLoad(e); }
protected internal void RaiseAfterItemCheckChangeEvent(TreeListItem item) { var e = new TreeListItemEventArgs { Item = item }; OnAfterItemCheckChange(e); }
protected internal void RaiseItemCheckChanged(TreeListItem item) { var e = new TreeListItemEventArgs { Item = item }; OnItemCheckChanged(e); }
protected internal void RaiseItemClickEvent(TreeListItem item) { var e = new TreeListItemEventArgs { Item = item }; OnItemClick(e); }
void TreeList_ItemClick(object sender, TreeListItemEventArgs e) { if (TreeList.ShowCheckBoxes) { return; } SetItem(GetDisplayText(e.Item), GetValue(e.Item)); HideDropDown(); }
void TreeList_AfterItemCheckChange(object sender, TreeListItemEventArgs e) { if (!TreeList.ShowCheckBoxes) { return; } var sb = new StringBuilder(); var array = new List <object>(); foreach (var item in TreeList.CheckedItems) { if (sb.Length > 0) { sb.Append(","); } sb.Append(GetDisplayText(item)); array.Add(GetValue(item)); } SetItem(sb.ToString(), array.Count == 0 ? null : array.ToArray()); }
protected virtual void OnAfterItemExpand(TreeListItemEventArgs e) { AfterItemExpand?.Invoke(this, e); }
protected virtual void OnAfterItemCollapse(TreeListItemEventArgs e) { AfterItemCollapse?.Invoke(this, e); }
protected virtual void OnDemandLoad(TreeListItemEventArgs e) { DemandLoad?.Invoke(this, e); }
protected virtual void OnAfterItemCheckChange(TreeListItemEventArgs e) { AfterItemCheckChange?.Invoke(this, e); }
protected virtual void OnItemCheckChanged(TreeListItemEventArgs e) { ItemCheckChanged?.Invoke(this, e); }
protected virtual void OnItemDoubleClick(TreeListItemEventArgs e) { ItemDoubleClick?.Invoke(this, e); }