public void Load(IEnumerable <TDataItem> source)
        {
            this.sourceCollection = source;
            RadCollectionView <TDataItem> .RebuildDescriptorIndex(source, this.sourceView.SortDescriptors, this.sourceView.GroupDescriptors);

            this.Indexer.Load(this.sourceCollection);
        }
Exemplo n.º 2
0
        public SnapshotCollectionView(IEnumerable <TDataItem> sourceCollection, RadCollectionView <TDataItem> sourceView)
        {
            this.sourceView       = sourceView;
            this.sourceCollection = sourceCollection;

            RadCollectionView <TDataItem> .RebuildDescriptorIndex(sourceCollection, sourceView.SortDescriptors, sourceView.GroupDescriptors);
        }
Exemplo n.º 3
0
 public void Dispose()
 {
     if (this.collectionView != null)
     {
         this.collectionView.EndDefer();
         this.collectionView = null;
     }
 }
Exemplo n.º 4
0
 private void EnsureDescriptorIndex()
 {
     if (this.SourceCollection == null)
     {
         return;
     }
     RadCollectionView <TDataItem> .RebuildDescriptorIndex(this.SourceCollection, this.SortDescriptors, this.GroupDescriptors);
 }
Exemplo n.º 5
0
 public void Dispose()
 {
     if (this.collectionView == null)
     {
         return;
     }
     this.collectionView.EndDefer();
     this.collectionView = (RadCollectionView <TDataItem>)null;
 }
Exemplo n.º 6
0
 public RadListSource(IDataItemSource source)
     : this(source, null)
 {
     this.collectionView = new RadDataView <TDataItem>(this);
     if (this.collectionView != null)
     {
         this.collectionView.CurrentChanged += new EventHandler(collectionView_CurrentChanged);
     }
 }
Exemplo n.º 7
0
 public RadListSource(IDataItemSource source)
     : this(source, (RadCollectionView <TDataItem>)null)
 {
     this.collectionView = this.CreateDefaultCollectionView();
     if (this.collectionView == null)
     {
         return;
     }
     this.collectionView.CurrentChanged += new EventHandler(this.collectionView_CurrentChanged);
 }
Exemplo n.º 8
0
 public RadListSource(IDataItemSource source, RadCollectionView <TDataItem> collectionView)
 {
     this.currencyManager = (CurrencyManager)null;
     this.boundProperties = new PropertyDescriptorCollection(new PropertyDescriptor[0]);
     this.collectionView  = collectionView;
     if (this.collectionView == null)
     {
         this.collectionView = (RadCollectionView <TDataItem>) new EmptyCollectionView <TDataItem>((IEnumerable <TDataItem>) this);
     }
     this.collectionView.CurrentChanged += new EventHandler(this.collectionView_CurrentChanged);
     if (source == null)
     {
         this.bindingContext = new BindingContext();
     }
     else
     {
         this.source         = source;
         this.bindingContext = this.source.BindingContext;
         this.source.BindingContextChanged += new EventHandler(this.source_BindingContextChanged);
     }
 }
Exemplo n.º 9
0
        public RadListSource(IDataItemSource source, RadCollectionView <TDataItem> collectionView)
        {
            this.currencyManager = null;
            this.boundProperties = null;
            this.collectionView  = collectionView;
            if (this.collectionView == null)
            {
                this.collectionView = new EmptyCollectionView <TDataItem>(this);
            }

            this.collectionView.CurrentChanged += new EventHandler(collectionView_CurrentChanged);

            if (source == null)
            {
                this.bindingContext = new BindingContext();
                return;
            }

            this.source         = source;
            this.bindingContext = this.source.BindingContext;
            this.source.BindingContextChanged += new EventHandler(source_BindingContextChanged);
        }
Exemplo n.º 10
0
 public AvlIndex(RadCollectionView <T> collectionView, IEnumerable <T> source)
     : base(collectionView)
 {
     this.source = source;
     this.InitializeItems();
 }
Exemplo n.º 11
0
 public AvlIndex(RadCollectionView <T> collectionView)
     : base(collectionView)
 {
     this.source = collectionView.SourceCollection;
     this.InitializeItems();
 }
Exemplo n.º 12
0
 // Methods
 public DeferHelper(RadCollectionView <TDataItem> collectionView)
 {
     this.collectionView = collectionView;
 }
Exemplo n.º 13
0
 public LinqIndex(RadCollectionView <T> collectionView)
     : base(collectionView)
 {
 }
Exemplo n.º 14
0
 public Index(RadCollectionView <T> collectionView)
 {
     this.collectionView = collectionView;
 }