Currently csv files are exported with UTF-8 encoding. There should be an option allowing users to change it.
Steps to reproduce: 1. Add a RadGridView to a form 2. Add several columns and set their MinWidth to 0 3. Set the grid AutoSizeColumnsMode property to Fill 4. Run the project and you will see that you cannot resize the columns. WORKAROUND: Set the MinWidth property to a value greater than 0
To reproduce: GridViewMaskBoxColumn maskBoxColumn = new GridViewMaskBoxColumn(); maskBoxColumn.Name = "MaskEditBoxColumn"; maskBoxColumn.HeaderText = "MaskEditBoxColumn"; maskBoxColumn.MaxLength = 5; maskBoxColumn.MaskType = MaskType.Numeric; maskBoxColumn.Mask = "C"; maskBoxColumn.FormatString = "{0:C}"; radGridView1.MasterTemplate.Columns.Add(maskBoxColumn); WORKAROUND: void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e) { GridSpinEditor editor = e.ActiveEditor as GridSpinEditor; if (editor != null) { GridSpinEditorElement element = (GridSpinEditorElement)editor.EditorElement; element.TextChanging += element_TextChanging; } } void element_TextChanging(object sender, TextChangingEventArgs e) { e.Cancel = e.NewValue.Length > 5; } Comment : Removed the MaxLength property from GridViewMaskBoxColumn. You should use the Mask property and set an appropriate mask value. For example the #### mask allows entering only 4 digits.
The RadGridView throws unhandled exception, when you try to close the custom filtering form twice for invalid filter descriptor.
1. Create a new project with RadGridView. 2. Make all columns read only. 3. Use Ctrl+x, +v and +c key combinations.
1. Create RadGridView with hierarchy. 2. Set UseScrollbarsInHierarchy property to true. 3. Handle the CellDoubleClick event. 4. Run the project, open a child view and double click on its scrollbar. The CellDoubleClick event will fire which is wrong.
Filtering does not work correctly when NotConains and Contains filters are combined. Work around: private void radGridView1_FilterExpressionChanged(object sender, FilterExpressionChangedEventArgs e) { List<string> filterExpressions = new List<string>(); for (int i = 0; i < this.radGridView1.FilterDescriptors.Count; i++) { FilterDescriptor descriptor = this.radGridView1.FilterDescriptors[i]; string expression = null; CompositeFilterDescriptor compositeFilterDescriptor = descriptor as CompositeFilterDescriptor; if (compositeFilterDescriptor != null) { expression = CompositeFilterDescriptor.GetCompositeExpression(compositeFilterDescriptor); } else { expression = FilterDescriptor.GetExpression(descriptor); } if (!string.IsNullOrEmpty(expression)) { filterExpressions.Add("(" + expression + ")"); } } string logicalOperator = (this.radGridView1.FilterDescriptors.LogicalOperator == FilterLogicalOperator.And) ? " AND " : " OR "; string resultExpression = String.Join(logicalOperator, filterExpressions.ToArray()); e.FilterExpression = resultExpression; }
Export to excel fails when there is null values for GridViewDateTimeColumn. The following code snippet reproduce the issue: ExportToExcelML export = new ExportToExcelML(gridView); export.HiddenColumnOption = HiddenOption.DoNotExport; export.HiddenRowOption = HiddenOption.DoNotExport; export.ExportVisualSettings = false; export.SheetMaxRows = ExcelMaxRows._1048576; export.RunExport(targetFileName);
FIX. RadGridViiew - HierarchyLevel property shows incorrect hierarchy level for GridNewRowElement in grid with hierarchy.
Object-hierarchy produces same child rows for every parent row.
If RadDropDownListEditor has DropDown style and you write a value which exists in the underline data source, it does not become current value.
The summary aggregate expression IIF(SUM(RecordCount) = 0, 0, 1/SUM(RecordCount)) causes exception in RadGridView.
GridView “decimal column - Current value “500”- Input “1.2.3.4” Scenario case: 1. Approaching to the target cell by “Mouse click directly on the input cell” then key in “1.2.3.4” and Enter à Display “500” as original value2. Approaching to target cell by “Tab or moving cursor to input cell” then key in “1.2.3.4” and Enter à Display “1” as only display the first input digit only
Scrolling when column reorder is performed does not work in hierarchy mode.
Currently developers can localize the names of the properties. They should be able to localize the descriptions as well.
Implement "Tag" and "Name" properties into the GridViewColumnGroup.
1. Create a new project with RadGridView. 2. Bind it to a data source with two columns and make the first one read only. 3. Handle the CellValidating event and add a condition to validate the second column. 4. Run the project and enter invalid value in second column. 5. Now enter a correct value and press Tab key. You will be navigated to a wrong row.
If the Average aggregate is applied over a column which contains only integer data (for example over the ID column of a DataTable), the result will be calculated as an integer value which is not correct in most cases. To workaround the issue, add a custom evaluation of the average function on the GroupSummaryEvaluate event: void radGridView1_GroupSummaryEvaluate(object sender, GroupSummaryEvaluationEventArgs e) { if (e.SummaryItem.FieldName == "ID" && e.SummaryItem.Aggregate == GridAggregateFunction.Avg) { int count = 0; decimal sum = 0; foreach (GridViewRowInfo row in this.radGridView1.Rows) { count++; sum += (decimal)row.Cells["ID"].Value; } e.Value = count > 0 ? sum / count : 0; } }
If one exports a hierarchy and a hierarchy row does not have child rows, the header cells of the row's child view are still exported.
1. Create a new project with RadGridView. 2. Set AutoSizeRows to true and WrapText in one of the columns to true. 3. Set the ApplicationThemeName to Aqua. 4. Set EnableFiltering to true. 5. Run the application and filter by the first column, the filtering row resizes correctly. Now filter the column where WrapText is set to true. It will not resize correctly.