If RadGridView is bound to custom objects that implement IComparable<T>, Excel-like filtering does not work. Currently, the issue can be avoided through implementing IComparable instead.
When RadGridView is scrolled while selecting (SelectionMode is CellSelect), the control throws exception.
RadExpressionEditorForm to not close when the created expression is not valid.
Summary rows evaluation does not support custom aggregation expressions as Count(IIF(Result='Pass' ,1, Null))
Allow getting all child rows of GridViewGroupRowInfo before filtering and sorting operation to be applied.
The RadGridView should not leave its edit mode state, when scrolling is performed.
Add BestFitColumnMode.AllCells that performs column best fit operation over all rows.
Improve editors in RadGridView by allowing clipping when the control is scrolled.
Improve RadGridView API by allowing user to set styles for all rows and columns through styles as Microsoft DataGridView. Expose the following properties: - ColumnHeadersDefaultCellStyle - RowHeadersDefaultCellStyle - RowsDefaultCellStyle - DefaultCellStyle
Make possible users easily to change the behavior of replacing the null value with empty string. Workaround: DataTable table = new DataTable("table"); table.Columns.Add("ID", typeof(int)); DataColumn col = table.Columns.Add("Name", typeof(string)); col.AllowDBNull = false; col.DefaultValue = string.Empty; table.ColumnChanging += new DataColumnChangeEventHandler(table_ColumnChanging); this.radGridView1.DataSource = table; private void table_ColumnChanging(object sender, DataColumnChangeEventArgs e) { if (!e.Column.AllowDBNull && (e.ProposedValue == DBNull.Value || e.ProposedValue == null) && e.Column.DataType == typeof(string)) { e.ProposedValue = string.Empty; } }
The Column Chooser of RadGridView should show the invisible columns sorted.
Char type filtering should be allowed for all filtering operators supported by the string type (except: StartsWith, EndsWith, Contains and NotContains)
The BestFitColumns algorithm should be performed for columns groups in ColumnGroupsViewDefinition.
When the RadGridView is bind to a data source, which contains a flagged enum, an instance of GridViewComboBoxColumn should be added and its editor should be checked drop down list.
To repriduce: - Add a grid with Office2007Theme applied and sort by one of the columns - Set RightToLeft to true - Make sure the column width is no wider than the text Workaround: void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e) { GridHeaderCellElement headerCell = e.CellElement as GridHeaderCellElement; if (headerCell != null) { if (radGridView1.ThemeName == "Office2007Silver" && e.Column.IsSorted) { headerCell.Arrow.Alignment = ContentAlignment.TopCenter; headerCell.Arrow.Margin = new Padding(0, 1, 0, 0); } } }
To reproduce: 1.Bind RadGridView to hierarchical data - no vertical scroll-bar is visible. 2.Select a certain row and expand the child template (click the expander) - vertical scroll-bar appears. 3.Scroll several rows downwards. 4.Click the expander to close the child template (the vertical scroll-bar should hide). As a result the selected row is changed. Workaround: follow the approach below: GridViewHierarchyRowInfo row = null; bool keepParentRow = false; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.productsTableAdapter.Fill(this.nwindDataSet.Products); this.categoriesTableAdapter.Fill(this.nwindDataSet.Categories); radGridView1.AutoGenerateHierarchy = true; radGridView1.DataSource = this.nwindDataSet; radGridView1.DataMember = "Categories"; radGridView1.CurrentRowChanging += radGridView1_CurrentRowChanging; radGridView1.ChildViewExpanded += radGridView1_ChildViewExpanded; radGridView1.MouseDown += radGridView1_MouseDown; } private void radGridView1_CurrentRowChanging(object sender, CurrentRowChangingEventArgs e) { RadGridView grid = sender as RadGridView; if (grid != null && row != null && keepParentRow) { e.Cancel = true; } } private void radGridView1_MouseDown(object sender, MouseEventArgs e) { RadGridView grid = sender as RadGridView; if (grid != null) { GridExpanderItem expander = grid.ElementTree.GetElementAtPoint(e.Location) as GridExpanderItem; if (expander != null && row != null) { keepParentRow = true; } else { keepParentRow = false; } } } private void radGridView1_ChildViewExpanded(object sender, Telerik.WinControls.UI.ChildViewExpandedEventArgs e) { RadGridView grid = sender as RadGridView; if (grid != null && e.IsExpanded == false) { row = e.ParentRow as GridViewHierarchyRowInfo; } }
To reproduce: -add RadGridView and apply Windows7 theme -click on some GridHeaderCellElement. As a result the arrow is cut off. Workaround: this.radGridView1.ViewCellFormatting+=radGridView1_ViewCellFormatting; private void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e) { GridHeaderCellElement cell = e.CellElement as GridHeaderCellElement; if (cell != null) { cell.Arrow.Margin = new Padding(0, 3, 0, 0); } }
exception is thrown when the ListChanged event send ItemChanged notification before ItemAdded
1. Inherit from RadGridView 2. Add the grid to IContainer 3. Bind the grid => the rows are not visible even though they are added and the binding is successful
FIX. RadGridView - exception when copying cells from different groups