internal RadListDataGroupItem NewHeaderItem(ListGroup group) { RadListDataGroupItem result = new RadListDataGroupItem(group); result.DataLayer = this; result.Owner = this.owner; return(result); }
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); }
protected override void OnClick(EventArgs e) { base.OnClick(e); if (!this.Collapsible) { return; } RadListDataGroupItem data = this.Data; data.Collapsed = !data.Collapsed; }
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); }