Exemple #1
0
 public VirtualGridRowElementEventArgs(
     VirtualGridRowElement rowElement,
     VirtualGridViewInfo viewInfo)
     : base(viewInfo)
 {
     this.rowElement = rowElement;
 }
 void expandTimer_Tick(object sender, EventArgs e)
 {
     expandTimer.Stop();
     viewInfoToExpand.StopRowWaiting(rowToExpand);
     viewInfoToExpand.ExpandRow(rowToExpand);
     viewInfoToExpand = null;
 }
Exemple #3
0
            public object GetCellValue(object value, int rowIndex, int columnIndex, VirtualGridViewInfo viewInfo)
            {
                VirtualGridCellValueNeededEventArgs args = new VirtualGridCellValueNeededEventArgs(rowIndex, columnIndex, viewInfo);

                this.OnCellValueNeeded(args);
                return(args.Value);
            }
 public VirtualGridCellElementEventArgs(
     VirtualGridCellElement cellElement,
     VirtualGridViewInfo viewInfo)
     : base(viewInfo)
 {
     this.cellElement = cellElement;
 }
 public VirtualGridCellValueNeededEventArgs(
     int rowIndex,
     int columnIndex,
     VirtualGridViewInfo viewInfo)
     : base(rowIndex, columnIndex, viewInfo)
 {
 }
Exemple #6
0
 public VirtualGridViewInfoPropertyChangedEventArgs(
     VirtualGridViewInfo viewInfo,
     string propertyName)
     : base(viewInfo)
 {
     this.propertyName = propertyName;
 }
 public VirtualGridRowExpandingEventArgs(
     int rowIndex,
     VirtualGridViewInfo childViewInfo,
     VirtualGridViewInfo viewInfo)
     : base(rowIndex, childViewInfo, viewInfo)
 {
 }
 public VirtualGridRowExpandedEventArgs(
     int rowIndex,
     VirtualGridViewInfo childViewInfo,
     VirtualGridViewInfo viewInfo)
     : base(rowIndex, viewInfo)
 {
     this.childViewInfo = childViewInfo;
 }
Exemple #9
0
 public VirtualGridContextMenuOpeningEventArgs(
     int rowIndex,
     int columnIndex,
     VirtualGridViewInfo viewInfo,
     RadDropDownMenu contextMenu)
     : base(rowIndex, columnIndex, viewInfo)
 {
     this.contextMenu = contextMenu;
 }
Exemple #10
0
 public VirtualGridCellValidatingEventArgs(
     int rowIndex,
     int columnIndex,
     VirtualGridViewInfo viewInfo,
     object newValue)
     : base(rowIndex, columnIndex, viewInfo)
 {
     this.newValue = newValue;
 }
Exemple #11
0
 public VirtualGridCellEditorInitializedEventArgs(
     IInputEditor activeEditor,
     int rowIndex,
     int columnIndex,
     VirtualGridViewInfo viewInfo)
     : base(rowIndex, columnIndex, viewInfo)
 {
     this.activeEditor = activeEditor;
 }
 public VirtualGridSelectionChangingEventArgs(
     VirtualGridSelectionAction selectionAction,
     int rowIndex,
     int columnIndex,
     VirtualGridViewInfo viewInfo)
     : base(rowIndex, columnIndex, viewInfo)
 {
     this.selectionAction = selectionAction;
 }
 public VirtualGridCellValuePushedEventArgs(
     object value,
     int rowIndex,
     int columnIndex,
     VirtualGridViewInfo viewInfo)
     : base(rowIndex, columnIndex, viewInfo)
 {
     this.value = value;
 }
Exemple #14
0
 public VirtualGridEditorRequiredEventArgs(
     IInputEditor editor,
     int rowIndex,
     int columnIndex,
     VirtualGridViewInfo viewInfo)
     : base(rowIndex, columnIndex, viewInfo)
 {
     this.editor = editor;
 }
Exemple #15
0
 public VirtualGridColumnWidthChangingEventArgs(
     int columnIndex,
     int oldWidth,
     int newWidth,
     VirtualGridViewInfo viewInfo)
     : base(columnIndex, viewInfo)
 {
     this.newWidth = newWidth;
     this.oldWidth = oldWidth;
 }
 public VirtualGridRowHeightChangingEventArgs(
     int rowIndex,
     int oldHeight,
     int newHeight,
     VirtualGridViewInfo viewInfo)
     : base(rowIndex, viewInfo)
 {
     this.newHeight = newHeight;
     this.oldHeight = oldHeight;
 }
Exemple #17
0
 public SelectionRegion(
     int top,
     int left,
     int bottom,
     int right,
     VirtualGridViewInfo viewInfo)
 {
     this          = new SelectionRegion();
     this.Top      = top;
     this.Left     = left;
     this.Bottom   = bottom;
     this.Right    = right;
     this.ViewInfo = viewInfo;
 }
        private void radVirtualGrid1_RowExpanding(object sender, Telerik.WinControls.UI.VirtualGridRowExpandingEventArgs e)
        {
            if (viewInfoToExpand == null)
            {
                e.Cancel = true;
                e.ViewInfo.StartRowWaiting(e.RowIndex);
                viewInfoToExpand = e.ViewInfo;
                rowToExpand      = e.RowIndex;
                expandTimer.Start();
            }
            else
            {
                if (rowToExpand != e.RowIndex)
                {
                    e.Cancel = true;
                }
                else
                {
                    if (e.ChildViewInfo.HierarchyLevel == 2)
                    {
                        e.ChildViewInfo.ColumnCount = DetailsWorkerInProjects.FieldNames.Length;
                        e.ChildViewInfo.RowCount    = treeTables[e.ViewInfo.ParentRowIndex].DetailsWorkerInProjects.Count;
                    }
                    //
                    else if (e.ChildViewInfo.HierarchyLevel == 1)
                    {
                        e.ChildViewInfo.ColumnCount = 4;
                        e.ChildViewInfo.RowCount    = 3;
                    }
                    else if (e.ChildViewInfo.HierarchyLevel == 3)
                    {
                        e.ChildViewInfo.ColumnCount = 2;
                        e.ChildViewInfo.RowCount    = 3;
                    }

                    else
                    {
                        e.ChildViewInfo.ColumnCount = 0;
                        e.ChildViewInfo.RowCount    = 0;
                    }
                }
            }
        }
 public VirtualGridRowEventArgs(int rowIndex, VirtualGridViewInfo viewInfo)
     : base(viewInfo)
 {
     this.rowIndex = rowIndex;
 }
Exemple #20
0
 public VirtualGridCellInfo(int rowIndex, int columnIndex, VirtualGridViewInfo viewInfo)
 {
     this.rowIndex    = rowIndex;
     this.columnIndex = columnIndex;
     this.viewInfo    = viewInfo;
 }
Exemple #21
0
 public VirtualGridColumnEventArgs(int columnIndex, VirtualGridViewInfo viewInfo)
     : base(viewInfo)
 {
     this.columnIndex = columnIndex;
 }
 public VirtualGridQueryHasChildRowsEventArgs(int rowIndex, VirtualGridViewInfo viewInfo)
     : base(rowIndex, viewInfo)
 {
 }
Exemple #23
0
 public VirtualGridCellEventArgs(int rowIndex, int columnIndex, VirtualGridViewInfo viewInfo)
     : base(viewInfo)
 {
     this.rowIndex    = rowIndex;
     this.columnIndex = columnIndex;
 }
 public VirtualGridRowValidatingEventArgs(int rowIndex, VirtualGridViewInfo viewInfo)
     : base(rowIndex, viewInfo)
 {
 }