Ejemplo n.º 1
0
        private static void OnRowHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadDataGrid table = d as RadDataGrid;

            if (table != null)
            {
                table.model.RowHeight = (double)e.NewValue;
                table.updateService.RegisterUpdate(UpdateFlags.None);
            }
        }
Ejemplo n.º 2
0
        private static void OnUserGroupModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadDataGrid grid = d as RadDataGrid;

            if (grid.IsTemplateApplied)
            {
                grid.UpdateServicePanelVisibility();
                grid.InvalidateMeasure();
            }
        }
Ejemplo n.º 3
0
        void IGridView.Arrange(Node node)
        {
            GridEditRowModel editRow = node as GridEditRowModel;

            if (editRow != null)
            {
                this.ArrangeEditRow(editRow);
                return;
            }

            GridRowModel row = node as GridRowModel;

            if (row != null)
            {
                RadDataGrid.ArrangeRow(row);
                return;
            }

            GridHeaderCellModel headerCell = node as GridHeaderCellModel;

            if (headerCell != null)
            {
                this.ArrangeHeaderCell(headerCell);
                return;
            }

            GridCellEditorModel editCell = node as GridCellEditorModel;

            if (editCell != null)
            {
                this.ArrangeEditorCell(editCell);
            }

            GridCellModel cell = node as GridCellModel;

            if (cell != null)
            {
                this.ArrangeCell(cell);
            }
        }
Ejemplo n.º 4
0
 public XamlGridRowGenerator(RadDataGrid owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 5
0
 private void RaiseValidateCommands(RadDataGrid grid, ValidateCellContext context)
 {
     grid.CommandService.ExecuteCommand(CommandId.ValidateCell, context);
 }
Ejemplo n.º 6
0
 public XamlGridEditCellGenerator(RadDataGrid owner)
 {
     this.owner = owner;
 }
 public XamlGridHeaderCellGenerator(RadDataGrid owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 8
0
 internal DataGridDataView(RadDataGrid grid)
 {
     this.owner = grid;
     this.model = this.owner.Model;
 }
Ejemplo n.º 9
0
        private static void OnListenForNestedPropertyChangePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadDataGrid grid = d as RadDataGrid;

            grid.model.ListenForNestedPropertyChange = (bool)e.NewValue;
        }