Add BestFitColumnMode.AllCells that performs column best fit operation over all rows.
1. Create a new project and add RadGridView. 2. Bind it to a data source with many columns, so that a scrollbar appears at run time. 3. Set up validation. 4. Run the project and put a cell in edit mode. 5. Write a value that will not pass the validation. 6. Use the horizontal scrollbar to scroll to right.
When exporting to excel the exporter exports null values as empty strings instead of empty excel cells.
Gridview contains one image column and one text column. It is supposed that the data in the gridview is sorted by the text column. EnableSorting is enabled for the whole gridview. The image column has AllowSort disabled and SortOrder set to None whereas the text column has the SortOrder set to Ascending. However, if the grid is populated with data it is primarily sorted by the image column. This problem is illustrated in the attached project. I've added three rows with data and would expect the grid be sorted as "A", "B", "C", whereas the resulting order is "B", "C", "A" due to the image in the row which contains the "A".
The sort check box, the expression editor button and the text box text should be localized
1. Create a new project with RadGridView. 2. Add a column containing TimeSpan values. 3. Add a method which exports RadGridView in ExcelML. 4. Run the project and export the grid.
1. Create a new project with RadGridView and set the MultiSelect property to true. 2. Subscribe for the SelectionChanged event. 3. Run the project and select some rows using the mouse. 4. Scroll up to deslect some of the rows. You will see that the SelectionChanged event does not fire.
RadGridView.TableElement.ScrollToRow(row) does not work when VerticalScrollState = ScrollState.AlwaysHide
The column image setting overrides the local image setting. Work around: void grid_CellFormatting(object sender, CellFormattingEventArgs e) { if (e.CellElement is GridCommandCellElement) { if (e.Column.Name == "stationview") { RadButtonElement element = (RadButtonElement)e.CellElement.Children[0]; element.UnbindProperty(RadButtonElement.ImageProperty); element.Image = img; element.DisplayStyle = DisplayStyle.Image; element.ImageAlignment = ContentAlignment.MiddleCenter; } } }
The recommended solution works fine but late I found that unfortunately there is some error in handling custom filters that prevents in most of our grids correct functioning. I enabled custom filtering and assigned event handler. When following conditions are met: - grid has no FilterDescriptors - e.Handled is set to false in GridViewCustomFilteringEventHandler then row, for which was set e.Handler = false in custom filtering event handler, is not shown in the grid. If grid has some FilterDescriptor in its FilterDescriptors collections, then everything works as expected.
If you have the grid bound to a data source and then you assign another data source containing some of the columns that exists in the first one (with the same name), those columns are not shown: public partial class Form1 : Form { public Form1() { InitializeComponent(); DataTable table = new DataTable(); table.Columns.Add("col1"); table.Columns.Add("col2"); for (int i = 0; i < 10; i++) { table.Rows.Add("A " + i, "B " + i); } radGridView1.DataSource = table; } private void radButton1_Click(object sender, EventArgs e) { DataTable table = new DataTable(); table.Columns.Add("col1"); table.Columns.Add("col2"); table.Columns.Add("col3"); table.Columns.Add("col4"); for (int i = 0; i < 10; i++) { table.Rows.Add("Z " + i, "X " + i, "C " + i, "V " + i); } //work around //radGridView1.MasterTemplate.Reset(); radGridView1.DataSource = table; } }
1. Create a project with RadGridView. 2. Group by some column. 3. Set the MultiSelect option to true. 4. When handling the CellValueChanged event change the value for all selected rows. 5. Run the project and filter by some column. 6. Select some rows and edit a value of a cell from the filtered column. 7. Repeat the action.
To reproduce: Add radGridView to a form open the property builder add GridViewCommandColumn go to advanced settings click the ellipse button of the Header Image property
Steps to reproduce: 1. Add a grid to a form and populate it with hierarchical data. 2. Add a button and in its click event handler add the following: a. code that will hide all but one row in the the grid master view. b. code that will export the grid via ExportToExcMelML 3. The resulting excel file will not contain the proper data.
The issue appears when there are empty string resources in the application. 1. Create a new project with RadGridView. 2. Add some columns. 3. Add empty string resource in the application resources. 4. Change the TextAlignment property of some column. 5. Check the generated designer code.
1. Create a new project with RadGridView. 2. Add some columns. 3. Set the MinWidth property for the last column to 2000. Do not set its Width property. 4. Run the project.
1. Create a new project with RadGridView. 2. Setup a column groups view. 3. Set the AutoSizeColumnsMode to fill. 4. Set MinWidth for all columns. 5. Run the project and start resizing a column.
create a filter on the "Status" column before clicking Save and Load? Invalid filter expression. ---> Telerik.Data.Expressions.InvalidExpressionException: Cannot perform '=' operation on WindowsFormsApplication1.EmployeeStatus and System.String.
1. Create a new project with RadGridView. 2. Setup a column groups view. 3. Set the AllowHide property for column group columns to true. 4. Run the project. 5. Open a column chooser and hide a column group by drag & drop in column chooser.
To reproduce, add a grid with GridViewHyperlinkColumn and enough rows for vertical scrolling. Click a link in a cell so its link will change to visited (its color changes). Scroll down and you will see how the same visited state is transferred to other cells.