internal override RadListSource CreateListSource() { RadListSource listSource = base.CreateListSource(); this.SetupListSource(listSource); return(listSource); }
public ListDataLayer(RadListElement owner) { this.owner = owner; this.listSource = this.CreateListSource(); this.items = this.CreateItemsCollection(owner); this.listSource.CollectionView.GroupDescriptors.Add("GroupKey", ListSortDirection.Ascending); this.WireEvents(); }
internal override RadListSource CreateListSource() { RadListSource listSource = base.CreateListSource(); listSource.ItemFactory = this.listSourceFactory = new DataBoundListBoxListSourceItemFactory(this); listSource.ItemPropertyChanged += this.OnListSource_ItemPropertyChanged; return(listSource); }
/// <summary> /// Creates a <see cref="T:Telerik.Core.Data.IDataSourceItem"/> instance. /// </summary> public IDataSourceItem CreateItem(RadListSource owner, object value) { DataSourceItem newItem = new DataSourceItem(owner, value); if (!string.IsNullOrEmpty(this.owner.itemCheckedPathCache)) { this.InitializeItemCheckedState(newItem); } return(newItem); }
protected virtual void EnsureFilterPredicate(ListViewDataItemGroup item) { if (this.owner == null || !this.owner.EnableFiltering || this.owner.DataView.Filter == null) { return; } RadListSource <ListViewDataItem> innerList = item.Items.InnerList as RadListSource <ListViewDataItem>; if (innerList == null) { return; } innerList.CollectionView.Filter = this.owner.DataView.Filter; }
void ListSource_PositionChanged(object sender, EventArgs e) { if (this.IsSuspended) { return; } this.SuspendUpdate(); RadListSource <RadTreeNode> source = this.TreeView.ListSource; if (source.Position >= 0 && source.Position < source.Count) { RadTreeNode node = source[source.Position]; this.TreeView.SelectedNode = node; ExpandEnsureVisible(); } this.ResumeUpdate(); }
/// <summary> /// Initializes a new instance of the <see cref="ListFooterIndicatorItem" /> class. /// </summary> internal ListFooterIndicatorItem(RadListSource owner, object value) : base(owner, value) { }
protected DataControlBase() { this.listSource = this.CreateListSource(); this.listSource.CollectionChanged += this.OnListSourceCollectionChanged; }
/// <summary> /// Changes the current ListSource instance with an external one. This is used in the PaginationListControl to save an additional ListSource instance. /// </summary> internal virtual void ChangeListSource(RadListSource externalSource) { this.listSource = externalSource; this.OnCollectionReset(); this.UpdateVisualState(false); }
internal virtual void SetupListSource(RadListSource listSource) { listSource.CurrentItemChanging += this.OnListSource_CurrentItemChanging; listSource.CurrentItemChanged += this.OnListSource_CurrentItemChanged; }
/// <summary> /// Creates a group item for the specified data group. /// </summary> public IDataSourceGroup CreateGroup(RadListSource owner, DataGroup dataGroup) { return(new DataSourceGroup(owner, dataGroup)); }
/// <summary> /// Initializes a new instance of the <see cref="IncrementalLoadingIndicatorItem" /> class. /// </summary> internal IncrementalLoadingIndicatorItem(RadListSource owner, object value) : base(owner, value) { }