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); } }
private static void OnUserGroupModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadDataGrid grid = d as RadDataGrid; if (grid.IsTemplateApplied) { grid.UpdateServicePanelVisibility(); grid.InvalidateMeasure(); } }
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); } }
public XamlGridRowGenerator(RadDataGrid owner) { this.owner = owner; }
private void RaiseValidateCommands(RadDataGrid grid, ValidateCellContext context) { grid.CommandService.ExecuteCommand(CommandId.ValidateCell, context); }
public XamlGridEditCellGenerator(RadDataGrid owner) { this.owner = owner; }
public XamlGridHeaderCellGenerator(RadDataGrid owner) { this.owner = owner; }
internal DataGridDataView(RadDataGrid grid) { this.owner = grid; this.model = this.owner.Model; }
private static void OnListenForNestedPropertyChangePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadDataGrid grid = d as RadDataGrid; grid.model.ListenForNestedPropertyChange = (bool)e.NewValue; }