Example #1
0
 protected virtual void OnAfterItemExpand(TreeListItemEventArgs e)
 {
     if (AfterItemExpand != null)
     {
         AfterItemExpand(this, e);
     }
 }
Example #2
0
 protected virtual void OnItemDoubleClick(TreeListItemEventArgs e)
 {
     if (ItemDoubleClick != null)
     {
         ItemDoubleClick(this, e);
     }
 }
Example #3
0
 protected virtual void OnAfterItemCollapse(TreeListItemEventArgs e)
 {
     if (AfterItemCollapse != null)
     {
         AfterItemCollapse(this, e);
     }
 }
Example #4
0
 protected virtual void OnDemandLoad(TreeListItemEventArgs e)
 {
     if (DemandLoad != null)
     {
         DemandLoad(this, e);
     }
 }
Example #5
0
 protected virtual void OnAfterItemCheckChange(TreeListItemEventArgs e)
 {
     if (AfterItemCheckChange != null)
     {
         AfterItemCheckChange(this, e);
     }
 }
Example #6
0
        protected internal void RaiseAfterItemExpandEvent(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnAfterItemExpand(e);
        }
Example #7
0
        protected internal void RaiseDamanLoadEvent(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnDemandLoad(e);
        }
Example #8
0
        protected internal void RaiseAfterItemCheckChangeEvent(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnAfterItemCheckChange(e);
        }
Example #9
0
        protected internal void RaiseItemCheckChanged(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnItemCheckChanged(e);
        }
Example #10
0
        protected internal void RaiseItemClickEvent(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnItemClick(e);
        }
Example #11
0
        void TreeList_ItemClick(object sender, TreeListItemEventArgs e)
        {
            if (TreeList.ShowCheckBoxes)
            {
                return;
            }

            SetItem(GetDisplayText(e.Item), GetValue(e.Item));

            HideDropDown();
        }
Example #12
0
        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());
        }
Example #13
0
 protected virtual void OnAfterItemExpand(TreeListItemEventArgs e)
 {
     AfterItemExpand?.Invoke(this, e);
 }
Example #14
0
 protected virtual void OnAfterItemCollapse(TreeListItemEventArgs e)
 {
     AfterItemCollapse?.Invoke(this, e);
 }
Example #15
0
 protected virtual void OnDemandLoad(TreeListItemEventArgs e)
 {
     DemandLoad?.Invoke(this, e);
 }
Example #16
0
 protected virtual void OnAfterItemCheckChange(TreeListItemEventArgs e)
 {
     AfterItemCheckChange?.Invoke(this, e);
 }
Example #17
0
 protected virtual void OnItemCheckChanged(TreeListItemEventArgs e)
 {
     ItemCheckChanged?.Invoke(this, e);
 }
Example #18
0
 protected virtual void OnItemDoubleClick(TreeListItemEventArgs e)
 {
     ItemDoubleClick?.Invoke(this, e);
 }