コード例 #1
0
        internal RadListDataGroupItem NewHeaderItem(ListGroup group)
        {
            RadListDataGroupItem result = new RadListDataGroupItem(group);

            result.DataLayer = this;
            result.Owner     = this.owner;

            return(result);
        }
コード例 #2
0
        protected override bool OnItemsNavigating(RadListDataItem current)
        {
            base.OnItemsNavigating(current);
            RadListDataGroupItem listDataGroupItem = current as RadListDataGroupItem;

            if (listDataGroupItem != null)
            {
                return(listDataGroupItem.Group.Key.Equals((object)0L));
            }
            return(current.Group.Collapsed);
        }
コード例 #3
0
        protected override void OnClick(EventArgs e)
        {
            base.OnClick(e);
            if (!this.Collapsible)
            {
                return;
            }
            RadListDataGroupItem data = this.Data;

            data.Collapsed = !data.Collapsed;
        }
コード例 #4
0
        protected override bool OnItemsNavigating(RadListDataItem current)
        {
            base.OnItemsNavigating(current);
            RadListDataGroupItem groupItem = current as RadListDataGroupItem;

            if (groupItem != null)
            {
                if (groupItem.Group.Key.Equals(0L))
                {
                    return(true);
                }
                return(false);
            }

            if (current.Group.Collapsed)
            {
                return(true);
            }

            return(false);
        }