1. Create a new project with RadGridView and bind it. 2. Setup column groups view. 3. Change some column and set the data source again on button click. 4. Run the project
Horizontal scrolling when multiple selection is performed by mouse.
The drag and drop of rows or columns to scroll the grid if the target item is not visible.
When a user groups the grid by a certain column and then attempts to drag the column back to the header, column reorder is possible, even though the AllowColumnReorder is false.
The following strings on the print settings dialog of RadGridView cannot be localized: "Page fit mode", "Print:", "Alternating row color", "Summary cells"
When RightToLeft is enabled in RadGridView and you try to print it, the layout of the pages is messed up.
"IsContainedIn" and "IsNotContainedIn" operators currently not work properly with composite values like: "1, 2, 3"
When a RadGridView instance is initialized in the Form's constructor, the grid is not assigned a binding context. Note: This is a desired behavior.
To reproduce: public Form1() { InitializeComponent(); Random r = new Random(); DataTable table = new DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Name", typeof(string)); table.Columns.Add("Bool", typeof(bool)); table.Columns.Add("DateColumn", typeof(DateTime)); for (int i = 0; i < 10; i++) { table.Rows.Add(i, "Row " + i, r.Next(10) > 5 ? true : false, DateTime.Now.AddHours(i)); } this.radGridView1.DataSource = table; radGridView1.Columns[0].FormatString = "{0:n3}"; } MemoryStream ms = new MemoryStream(); private void radButton1_Click(object sender, EventArgs e) { // ms.SetLength(0); reset memory stream to save new layout radGridView1.SaveLayout(ms); } private void radButton2_Click(object sender, EventArgs e) { radGridView1.LoadLayout(ms); } }
To reprouduce, have a grid with multiple rows selected using the translucent rectangle and use the following code on a button click: using System; using System.Data; using System.Windows.Forms; using Telerik.WinControls.UI; namespace Lab.Grid { public partial class GridSelectionException : MainForm { private RadGridView gridView = new RadGridView(); public GridSelectionException() { InitializeComponent(); gridView.Dock = DockStyle.Fill; gridView.Parent = this; gridView.BringToFront(); Random r = new Random(); DataTable table = new DataTable(); table.Columns.Add("ID"); table.Columns.Add("Name"); table.Columns.Add("Bool"); for (int i = 0; i < 10; i++) { table.Rows.Add(i, "Row" + i, (r.Next(10) > 5) ? true : false); } gridView.DataSource = table; gridView.MultiSelect = true; } protected override void OnButton1Click() { //your code for deleting rows if (this.gridView.SelectedRows.Count > 0) { System.Windows.Forms.Cursor.Current = Cursors.WaitCursor; GridViewDataRowInfo[] rows = new GridViewDataRowInfo[this.gridView.SelectedRows.Count]; this.gridView.SelectedRows.CopyTo(rows, 0); this.gridView.TableElement.BeginUpdate(); for (int i = 0; i <= rows.Length - 1; i++) { //rows[i].IsSelected = false; rows[i].Delete(); } this.gridView.TableElement.EndUpdate(); System.Windows.Forms.Cursor.Current = Cursors.Arrow; } } } }
FIX. RadGridView - CompositeFilterDescriptors does not work properly
FIX. RadGridView- exception when filtering date time column which contains null values
FIX. RadGridView - exception when copying cells from different groups
When the DataType of the column is not a floating point number, decimals should not be displayed. This should affect both the excel like filtering and the regular filtering
The CellFormating example of RadGridView formats in red color not only FirstName column's cells.
To reproduce: - Open the Excel Like Filtering demo - Open a the excel like filtering dialog and select Available Filter > Custom - Select Contains in both drop downs and press OK
The following code exhibits the problem. All you have to do is click the Wrapper column cell and bring down the dropdown. Then select the Phase column. You will get the app to crash in the FilterWrappers method. namespace RadControlsWinFormsApp2 { public partial class Form1 : Form { private String[] dataPhases = null; private String[] dataWrappers = null; public class Data { public Data(int ID, string Phase, int Wrapper) { this.ID = ID; this.Phase = Phase; this.Wrapper = Wrapper; } public int ID { get; set; } public String Phase { get; set; } public int Wrapper { get; set; } } public Form1() { InitializeComponent(); this.radGridView1.DataSource = new Data[] { new Data(1, "A", 1), new Data(2, "B", 2) }; } private void Form1_Load(object sender, EventArgs e) { GridViewComboBoxColumn columnPhase = radGridView1.Columns["PHASE"] as GridViewComboBoxColumn; dataPhases = new String[] { "A", "B", "C", "A/B/C" }; GridViewComboBoxColumn columnWrapper = radGridView1.Columns["WRAPPER"] as GridViewComboBoxColumn; dataWrappers = new String[] { "", "1", "2" }; columnWrapper.DataSource = dataWrappers; columnPhase.DataSource = dataPhases; } private void radGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { if (e.Column is GridViewComboBoxColumn) { RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor; if (editor != null) { RadDropDownListEditorElement editorElement = (RadDropDownListEditorElement)editor.EditorElement; editorElement.Filter = null; } } switch (e.Column.Name) { case "WRAPPER": { GridViewComboBoxColumn cbc = e.Column as GridViewComboBoxColumn; cbc.DataSource = dataWrappers; RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor; if (editor != null) { RadDropDownListEditorElement editorElement = (RadDropDownListEditorElement)editor.EditorElement; editorElement.Filter = FilterWrappers; } } break; case "PHASE": { GridViewComboBoxColumn cbc = e.Column as GridViewComboBoxColumn; cbc.DataSource = dataPhases; } break; } } private bool FilterWrappers(RadListDataItem item) { int nWrapper = 0; if (item.Value.ToString() != String.Empty) nWrapper = Convert.ToInt32(item.Value); return true; } } }
There should be an option which allows the users to turn off the escaping of special characters when exporting to ExcelML.
1. Create new project and add RadButton. 2. On button click show the same instance of RadColorDialog. 3. Before calling the ShowDialog method change the SelectedColor property to a random value. 4. Run the project and click the button several times.
Add a feature for default image similar to the DefaultText.