Exemplo n.º 1
0
 public GridViewListSource(
     GridViewTemplate template,
     RadCollectionView <GridViewRowInfo> collectionView)
     : base((IDataItemSource)template, collectionView)
 {
     this.Initialize(template);
 }
Exemplo n.º 2
0
        private void ApplyFilter()
        {
            RadCollectionView <GridViewRowInfo> dataView = this.owner.DataView;
            string expression = this.Expression;

            if (string.Compare(dataView.FilterExpression, expression) == 0)
            {
                return;
            }
            FilterExpressionChangedEventArgs args = new FilterExpressionChangedEventArgs(expression);

            this.owner.OnViewChanged((object)this.owner, new DataViewChangedEventArgs(ViewChangedAction.FilterExpressionChanged));
            this.owner.EventDispatcher.RaiseEvent <FilterExpressionChangedEventArgs>(EventDispatcher.FilterExpressionChanged, (object)this.owner, args);
            dataView.FilterExpression = args.FilterExpression;
            if (this.owner.MasterTemplate == null)
            {
                return;
            }
            GridViewRowInfo currentRow = this.owner.MasterTemplate.CurrentRow;

            if (currentRow == null || currentRow.ViewInfo == null || currentRow.ViewInfo.ChildRows.Contains(currentRow))
            {
                return;
            }
            currentRow.ViewTemplate.ListSource.CollectionView.MoveCurrentToPosition(-1);
        }
Exemplo n.º 3
0
        protected virtual void Initialize(GridViewTemplate template)
        {
            this.template = template;
            RadCollectionView <GridViewRowInfo> collectionView = this.CollectionView;

            collectionView.GroupFactory = (IGroupFactory <GridViewRowInfo>) new DataGroupFactory(template);
            collectionView.SortDescriptorCollectionFactory = (ISortDescriptorCollectionFactory) new GridViewSortDescriptorCollectionFactory(template);
            collectionView.Comparer = (IComparer <GridViewRowInfo>) new GridViewRowInfoComparer(collectionView.SortDescriptors);
            collectionView.GroupDescriptorCollectionFactory = (IGroupDescriptorCollectionFactory) new GridViewGroupDescriptorCollectionFactory(template);
            collectionView.CanFilter = false;
            collectionView.CanPage   = false;
        }
Exemplo n.º 4
0
 public ListIndex(RadCollectionView <T> collectionView, IEnumerable <T> source)
     : base(collectionView)
 {
     this.source = source;
     this.InitializeItems();
 }
Exemplo n.º 5
0
 public ListIndex(RadCollectionView <T> collectionView)
     : base(collectionView)
 {
     this.source = collectionView.SourceCollection;
     this.InitializeItems();
 }
Exemplo n.º 6
0
 public VirtualIndex(RadCollectionView <GridViewRowInfo> collectionView)
     : base(collectionView)
 {
 }
Exemplo n.º 7
0
 public Index(RadCollectionView <T> collectionView)
 {
     this.collectionView = collectionView;
 }
Exemplo n.º 8
0
 public GridSortFieldEnumerator(RadCollectionView <GridViewRowInfo> dataView)
 {
     this.dataView = dataView;
 }
Exemplo n.º 9
0
 public LinqIndex(RadCollectionView <T> collectionView)
     : base(collectionView)
 {
 }