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.
FIX. RadGridView - exception when binding to entities collection and specifying DataMember under Windows XP
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.
Setting the custom format is not applied to the cell. To reproduce: Dim customColumn As New GridViewDateTimeColumn() customColumn.Width = 200 customColumn.Name = "custom" customColumn.EditorType = GridViewDateTimeEditorType.TimePicker customColumn.FormatString = "{0:HH:mm}" customColumn.Format = DateTimePickerFormat.Custom customColumn.CustomFormat = "HH:mm" RadGridView1.MasterTemplate.Columns.Add(customColumn) RadGridView1.Rows.Add(DateTime.Now)
The hover visual style is applied on non hovered cell in Windows 7 Theme. 1. You should select a cell. 2. You should scroll the RadGridView with mouse wheel 3. You should hover the cell above the selected one. 4. You should select the cell below the current one. 5. You should scroll with mouse wheel. 6. After hovering the cells under the current cell several times, one of them will have gray background.
A title or caption that can be positioned on the top or bottom of RadGridView that shows a text defined by developer.
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; } } }
Just wanted to request the ability to perform column filtering while the grid view is grouped by that column. Currently, if we wish to filter down the visible release versions, we are required to un-group by the given column, apply the filtering and then regroup by the given column. Not a huge usability issue, but would be great if the little filter icon was accessible while the column was group. Might be tough if excel-like filtering was not enabled. Just a suggestion.
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.