1. Create a new project and open a form at design time 2. Drop RadGridView on the form 3. Add some columns 4. Open the Columns collection for edit 5. Select a column 6. Select the FilterDescriptor property and try to show its dialog
Workaround: use the following custom editor: using System; using Telerik.WinControls.UI; namespace radGridView_MultipleFilters { public class CustomRadMultiColumnComboBoxElement : RadMultiColumnComboBoxElement { protected override Type ThemeEffectiveType { get { return typeof(RadMultiColumnComboBoxElement); } } public GridViewDataColumn DisplayColumn { get { string displayMember = this.DisplayMember; if (string.IsNullOrEmpty(displayMember)) { for (int i = 0; i < this.MultiColumnPopupForm.EditorControl.Columns.Count; i++) { if (this.MultiColumnPopupForm.EditorControl.Columns[i].DataType == typeof(string)) { displayMember = this.MultiColumnPopupForm.EditorControl.Columns[i].FieldName; break; } } if (this.MultiColumnPopupForm.EditorControl.Columns.Count > 0 && string.IsNullOrEmpty(displayMember)) { displayMember = this.MultiColumnPopupForm.EditorControl.Columns[0].FieldName; } } DisplayMember = displayMember; GridViewDataColumn[] columns = this.MultiColumnPopupForm.EditorControl.Columns.GetColumnByFieldName(displayMember); if (columns.Length > 0) { return columns[0]; } return null; } } protected override object FindItemExact(string text) { int index = this.FindItemIndexExact(text); if (index != -1) { return this.EditorControl.ChildRows[index]; } return null; } protected override void SetActiveItem(string text) { int rowIndex = this.FindItemIndexExact(text); if (rowIndex != -1) { this.EditorControl.CurrentRow = this.EditorControl.ChildRows[rowIndex]; this.Select(this.Text.Length, 0); } } protected override int FindItemIndexExact(string text) { GridViewRowInfo rowInfo = this.FindItemExact(text, this.DisplayColumn.Name); if (rowInfo != null) { return rowInfo.Index; } return -1; } protected override GridViewRowInfo FindItemExact(string text, string field) { GridViewDataColumn[] foundColumns = this.EditorControl.Columns.GetColumnByFieldName(field); if (foundColumns.Length > 0) { for (int i = 0; i < this.EditorControl.ChildRows.Count; i++) { object element = this.EditorControl.ChildRows[i].Cells[foundColumns[0].Name].Value; string elementText = Convert.ToString(element); if (!string.IsNullOrEmpty(elementText) && elementText.Equals(text, this.EditorControl.MasterTemplate.CaseSensitive ? StringComparison.InvariantCulture : StringComparison.InvariantCultureIgnoreCase)) { return this.EditorControl.ChildRows[i]; } } } return null; } } }
When the UserDeletingRow and UserDeletedRow are fired in multi cell selection mode, the event arguments should contains the rows of the selected cells.
ADD. RadTimePicker localization provider
This issue appears when using hierarchy and the row height is customized.
When i press control-c at a gridviewcell and paste it to notepad or another telerik control it looks like this.if i paste it to excel it works fine.
Wrapping text in ColumnsGroupViewDefinition does not affect the size of the cells.
FIX. RadGridView - when AlternatingRowColors is enabled and the grid is sorted the colorized rows are wrong.
Makes RadGridView to be thread safe by using from BackgroundWorker
1. Drag a RadGridView to a form and dock it to fill the form. 2. Create and set a ColumnGroupsViewDefinition to the grid 3. Add data and run the project. 4. Resize the form and you will see that grid view layout would not look properly. Also if your resize a column group only the first column in the group is resized while all others retain their widths. Work around: void radGridView1_SizeChanged(object sender, EventArgs e) { this.InvalidateGridLayout(); } private void InvalidateGridLayout() { this.bllGridView1.TableElement.ViewElement.RowLayout.InvalidateLayout(); this.bllGridView1.TableElement.InvalidateMeasure(true); this.bllGridView1.TableElement.UpdateLayout(); }
Currently one can only set theme of the RadPrintPreviewDialog.
1. Create a new project with RadGridView and setup binding 2. Enable filtering 3. On a button click call the PrintPreview method 4. Run the application and click the button 5. Close the print dialog and click on a cell
Selfreference: Item.ID Item.Propertys.ParentID If Parent ID == null then since the new Update I will recive : bei Telerik.WinControls.UI.GridViewSelfReferenceComparer.Compare(GridViewRowInfo x, GridViewRowInfo y) bei Telerik.Collections.Generic.AvlTree`1.LastIndex(ValueT value) bei Telerik.Collections.Generic.AvlTree`1.InsertWithDuplicates(ValueT value) bei Telerik.Collections.Generic.AvlTree`1.Add(ValueT item) bei Telerik.WinControls.UI.GridViewSelfReferenceDataProvider.Refresh() bei Telerik.WinControls.UI.GridViewTemplate.Telerik.WinControls.Data.IDataItemSource.Initialize() bei Telerik.WinControls.Data.RadListSource`1.Initialize() bei Telerik.WinControls.Data.RadListSource`1.Bind(Object dataSource, String dataMember) bei Telerik.WinControls.Data.RadListSource`1.set_DataSource(Object value) bei Telerik.WinControls.UI.GridViewTemplate.set_DataSource(Object value) bei Telerik.WinControls.UI.RadGridView.set_DataSource(Object value) bei LocalSimulation.Form1.worker_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) in D:\Programming\REPOSITORY\trunk\AAARISK WEBAPP\LocalSimulation\Form1.cs:Zeile 142. bei System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e) bei System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg) So I changed Parent = null to Parent =0 and it works .
ADD. RadGridView - add support for scrolling the grid while dragging in SelectionMode = CellSelect
ADD. RadGridView - add ability to move the column with the expanders to different position then the first one Resolution: Set the SelfReferenceExpanderColumn property of the MasterTemplate to the preferred column. Here is the code snippet: radGridView1.MasterTemplate.SelfReferenceExpanderColumn = this.radGridView1.MasterTemplate.Columns[4];
1. The RowsChanging event is not fired when rows are deleting in multi-selection mode. 2. The last selected row is already deleted in the RowsChanging event in multi-cell selection mode.
The synchronization mechanism is invalid when sorting is applied and notification was received from external data source object.
Scrolling by mouse wheel in hierarchical RadGridView causes exception when Microsoft IntelliPoint is installed and configured for 25 vertical scrolling speed.
FIX. RadGridView - UserAddedRow is not fired when the AddNewRowPosition is Bottom and you tab through the cells to add the row. The result is that the row is added but the event is not fired.
Currently there is no way to sort group rows in RadGridView.