Esempio n. 1
0
        public DetailListViewElement(RadListViewElement owner)
            : base(owner)
        {
            this.columnScroller.Traverser        = new ListViewColumnTraverser(this.owner.Columns);
            this.columnContainer.DataProvider    = this.columnScroller;
            this.columnScroller.ScrollerUpdated += new EventHandler(columnScroller_ScrollerUpdated);

            this.columnDragDropService = new DetailListViewDragDropService(this);

            this.scrollBehavior.ScrollServices.Add(new ScrollService(this.ViewElement, this.columnsScrollBar));
        }
Esempio n. 2
0
 public DetailListViewElement(RadListViewElement owner)
     : base(owner)
 {
     this.columnScroller.Traverser        = (ITraverser <ListViewDetailColumn>) new ListViewColumnTraverser((IList <ListViewDetailColumn>) this.Owner.Columns);
     this.columnContainer.DataProvider    = (IEnumerable)this.columnScroller;
     this.columnScroller.ScrollerUpdated += new EventHandler(this.columnScroller_ScrollerUpdated);
     this.columnDragDropService           = new DetailListViewDragDropService(this);
     this.ScrollBehavior.ScrollServices.Add(new ScrollService((RadElement)this.ViewElement, this.columnsScrollBar));
     this.ItemSpacing   = -1;
     this.bestFitHelper = new ListViewBestFitHelper(this);
 }