To reproduce:
- Create a GridViewMaskBoxColumn with standard mask type and mask set to "aaaaaaaaaa".
- Bind the grid to the following DataTable:
private static DataTable GridDataTable()
{
DataRow dr = default(DataRow);
DataTable dt = new DataTable();
dt.Columns.Add("Description");
dr = dt.NewRow();
dr[0] = "1234567890";
dt.Rows.Add(dr);
dr = dt.NewRow();
dr[0] = "abc";
dt.Rows.Add(dr);
return dt;
}
- Click the first cell in order to enter in edit mode.
- Click the second cell and you will notice that the text is wrong.
Workaround:
- change the value in the CellEditor intialized event handler:
void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
if (e.ActiveEditor is RadMaskedEditBoxEditor)
{
RadMaskedEditBoxEditor editor = e.ActiveEditor as RadMaskedEditBoxEditor;
editor.MaskTextBox.Value = "___________";
editor.MaskTextBox.Value = (string)radGridView1.CurrentCell.Value;
}
}
To reproduce: - Create a RadGridView with 3 columns. - Set ShowRowHeaderColumn to false. - Set GridViewAutoSizeColumnsMode to Fill. - Select a cell and hit the TAB key multiple times. Notice the entire grid shift left and right.
To reproduce:
Add a RadGridView wth a few columns ,add rows as a few rows should have increasingly long text. Right click on the header cell to show the context menu and click bestfit. You will notice that the size of the column is not correct
Workaround: void grid_MouseMove(object sender, MouseEventArgs e) { this.mouseLocation = e.Location; } private Point mouseLocation; private GridViewColumn currentColumn; void grid_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e) { if (this.grid.CurrentRow is GridViewHierarchyRowInfo) { RadItem bestFitItem = e.ContextMenu.Items.FirstOrDefault(x => x.Text == "Best Fit"); if (bestFitItem != null) { e.ContextMenu.Items.Remove(bestFitItem); } RadMenuItem newBestFitItem = new RadMenuItem { Text = "Best Fit" }; this.currentColumn = (this.grid.ElementTree.GetElementAtPoint(this.mouseLocation) as GridCellElement).ColumnInfo; newBestFitItem.Click += newBestFitItem_Click; e.ContextMenu.Items.Add(newBestFitItem); } } void newBestFitItem_Click(object sender, EventArgs e) { int highestWidth = this.GetHeightestWidthFromColumn(this.currentColumn); this.currentColumn.Width = highestWidth; } private int GetHeightestWidthFromColumn(GridViewColumn gridViewColumn) { int max = int.MinValue; Font cellFont = this.grid.TableElement.VisualRows[0].VisualCells[0].Font; for (int i = 0; i < this.grid.Rows.Count; i++) { int textWidth = TextRenderer.MeasureText(this.grid.Rows[i].Cells[gridViewColumn.Index].Value + "", cellFont).Width; if (max < textWidth) { max = textWidth; } } return max; }
IIF function in Expression for calculated columns does not work.
There is wrong current row selection for bound RadGridView, when using AddNew and ResetBindings methods on same BindingSource.
When loading layout in RadGridView, combo box columns lose their data-sources.
When adding new row, before finishing it - leave the grid focus (click a button outside the grid for example). The new row has been added but RowValidating event does not thrown.
If there is not VerticalScrollbar in RadGridView, pressing PageUp/Down keys leads to unexpected behavior. To reproduce the issue just place a RadGridView in a Form and add a couple rows, but not enough to vertical scrollbar apear. Run the project and test repeated PageDown and PageUp key presses.
In the add new row element there is some cells€™ values, which are set through code (programmatically). However, if there is not at least one cell, which was manually edited (changed its value), the row cannot be committed.
Allow setting the CurrentColumn/CurrentCell in the RowValidaging event
Allow hiding the SummaryRowItems in RadGridView's Groups
Resolution: Individual cells cannot have specific FormatString since the property is bound to column's FormatString
When a RadGridView instance is initialized in the Form's constructor, the grid is not assigned a binding context. Note: This is a desired behavior.
RadGridView cannot display any data when bound to a List<IObject> filled with different implementations of the interface.
Set AutoSizeRows and WrapText to true. Start resizing the form. You will see that the cell size is wrong.
When canceling the CurrentRowChanging event and the changing row is the new row, then the click here to add new row text will not be visible anymore.
1. Create a new project with RadGridView 2. Bind a hierarchy with a large number of rows 3. Add two buttons and on button click call ExpandAll and CollapseAll methods 4. Run the project and click the first button
IMPROVE. RadExpressionEditorForm - add ability to be shown as modal form
This way, one will be able to make sure that the expression is valid prior assigning it to the column
IMPROVE. RadExpressionEditorForm - one should be able to access the form and its controls in order to customize their appearance