If you perform grouping by column and then apply best fit algorithm, it does not obey the data cells if the group rows are not expanded.
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.
Steps to reproduce: 1. Create a form 2. Set its Localization property to true. 3. Add RadGridView to the form 4. Add 3 GridViewTextBoxColumn instances at design-time 5. Change the Language of the form to Polish 6. The variable names of the columns are changed (gridViewTextBoxColumn1 to gridViewTextBoxColumn4, gridViewTextBoxColumn2 to gridViewTextBoxColumn5, gridViewTextBoxColumn3 to gridViewTextBoxColumn6)
Workaround: Private Sub radGridView1_CellFormatting(sender As Object, e As Telerik.WinControls.UI.CellFormattingEventArgs) If e.CellElement.IsPinned Then If e.CellElement.RowElement.DrawFill Then e.CellElement.DrawFill = False Else e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local) End If End If End Sub
It will be good if RadGridView can automatically (or by API) scroll to the child data in hierarchical grid right after the end-user expands a parent row.
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; } }
We would like to use the expressions created using the GridView in some of our LINQ queries on the individual columns. Are we able to get the raw C# or LINQ expression format from the expression editor for the actual expression? What language does the expression essentailly compile to?
Each time when the GridViewMaskeBoxColumn's cells leave edit mode, their values is decreased if percentage mask is used. GridViewMaskBoxColumn maskBoxColumn = new GridViewMaskBoxColumn("Amount", "Amount"); maskBoxColumn.Mask = "P"; maskBoxColumn.MaskType = MaskType.Numeric; maskBoxColumn.FormatString = "{0:0.00%;0.00%;none}"; this.radGridView1.Columns.Insert(2, maskBoxColumn);
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.
Steps to reproduce: 1. Add a grid to a form and fill it with some data 2. Add a button and in the click event: a. Assign a new GridPrintStyle instance to the PrintStyle property b. Subscribe for the PrintCellFormatting event of the grid c. Call the PrintPreview method of the grid 3. Add a break point in the event handler of the PrintCellFormatting 4. Start the app and click the button. You will see that the break point is never hit.
The current row selection mode highlights the current cell. A mode where the row is selected, but the current cell is not highlighted should be introduced (for example, "RowSelect" mode).
The Property Builder of RadGridView makes unnecessary Designer modifications, causing checkouts in source controlled files. For example, if you have a gridViewCheckBoxColumn1 stored in the designer file, you open the Property Builder and close it (no matter if you make any changes or not), the gridViewCheckBoxColumn1 is removed in favour of gridViewCheckBoxColumn2 that is automatically created.
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.
Improve RadGridViewDragDropService extensibility to perform visual drop indication over RadTreeView.
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.