Setting the FormatString of a column in the child template does not seem to take effect.
Escaping special symbols in filter expression when used IsEqualTo operator
To reproduce: setup self-reference hierarchy. Add a GridViewHyperlinkColumn and show the expander item in this column. Please refer to the attached screenshot. The hyperlink text overlaps with the expander. Workaround: set the MasterTemplate.SelfReferenceExpanderColumn to a different column.
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.
1. Create a new project and open a form at design mode. 2. Drop RadGridView component on the form. 3. Bind it to some data source. 4. Open the property builder. 5. Select a column and change its name property. You will see that the column name remains the same in the columns list located at left.
The cell navigation is wrong when the grid is ungrouped. Steps to reproduce: 1. Enable cell selection mode 2. Navigate with keyboard 3. Group the RadGridView by one column 4. Navigate with keyboard 5. Ungroup the RadGridView's rows 6. Now Keyboard navigation is wrong. Same behavior appears with the default selection mode: - Group the grid and select a row in a group - Ungroup and use the keyboard to navigate between the rows => it navigates only the rows that were in the group where we have selected a row WORKAROUND: private void radGridView1_GroupByChanged(object sender, Telerik.WinControls.UI.GridViewCollectionChangedEventArgs e) { GridViewRowInfo row = this.radGridView1.CurrentRow; this.radGridView1.CurrentRow = null; this.radGridView1.CurrentRow = row; }
Custom filtering does not work when self-referencing hierarchy used in RadGridView. Work around: GridView.EnableFiltering = !GridView.EnableFiltering; GridView.EnableFiltering = !GridView.EnableFiltering;
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.
To reproduce: please refer to the attached gif file. Apply a conditional formatting rule for the current time's minute. Then, after a minute later, try to edit the already applied rule and change the minute value, you will notice that the color is cleared, but the new one is not applied. Workaround: use the CellFormatting event https://docs.telerik.com/devtools/winforms/gridview/cells/formatting-cells
RadGridView scrolls to the top when copy and paste operations are performed. The grid scrolls to left when there are a lot of columns as well. In addition this is only observed when the cell is not in edit mode. Workaround: public class MyGridBehavior : BaseGridBehavior { public override bool ProcessKey(KeyEventArgs keys) { bool isPaste = false; if (keys.Control && keys.KeyCode == Keys.V && this.GridViewElement.Template.ClipboardCopyMode != GridViewClipboardCopyMode.Disable) { if (!(this.GridViewElement.Template.GridReadOnly || this.GridViewElement.Template.ReadOnly)) { isPaste = true; } } GridTableElement currentTableElement = this.GridViewElement.CurrentView as GridTableElement; int vScroll = currentTableElement.VScrollBar.Value; int hScroll = currentTableElement.HScrollBar.Value; bool result = base.ProcessKey(keys); if (isPaste) { currentTableElement.VScrollBar.Value = vScroll; currentTableElement.HScrollBar.Value = hScroll; } return result; } } this.radGridView1.GridBehavior = new MyGridBehavior();
i use a radgridview whits does not allow edit. i press control-v at a cell and it pastes to the cellvalue the last copied to clipboard text. is there a way to do that only if the grid allows edit?
When the RadGridView is scrolled horizontally, the right border of row header cell disappears.
The code below causes wrong layout of RadGridView control when 0, A0, A1, B2, C1 rows are expanded: private List<GridViewTemplate> childTemplates; public TestForm2() { InitializeComponent(); } protected override void OnLoad(EventArgs e) {
http://www.telerik.com/forums/gridview---adding-a-third-hierarchy-or-level#HdPZFtCJR0q1OCXxVR5wjg Dim ID As New GridViewDecimalColumn() ID.Name = "ID" ID.HeaderText = "Id" RadGridView1.MasterTemplate.Columns.Add(ID) Dim Name As New GridViewTextBoxColumn() Name.Name = "Name" Name.HeaderText = "Name" Name.Width = 100 RadGridView1.MasterTemplate.Columns.Add(Name) Dim Under_Appeal As New GridViewCheckBoxColumn() Under_Appeal.DataType = GetType(Boolean) Under_Appeal.Name = "Under_Appeal" Under_Appeal.HeaderText = "Under Appeal" RadGridView1.MasterTemplate.Columns.Add(Under_Appeal) Dim Terminated As New GridViewCheckBoxColumn() Terminated.DataType = GetType(Boolean) Terminated.Name = "Terminated" Terminated.HeaderText = "Terminated" RadGridView1.MasterTemplate.Columns.Add(Terminated) Dim Hash As New GridViewDecimalColumn() Hash.Name = "Hash" Hash.HeaderText = "#" RadGridView1.MasterTemplate.Columns.Add(Hash) RadGridView1.Rows.Add(1, "John", True, True) RadGridView1.Rows.Add(2, "Mary", True, False) RadGridView1.Rows.Add(3, "Peter", False, True) Dim template As New GridViewTemplate template.Columns.Add(New GridViewDecimalColumn("ParentID")) template.Columns.Add(New GridViewTextBoxColumn("TEXT")) template.Columns.Add(New GridViewDecimalColumn("PRICE")) RadGridView1.MasterTemplate.Templates.Add(template) Dim relation As New GridViewRelation(RadGridView1.MasterTemplate) relation.ChildTemplate = template relation.RelationName = "PersonProduct" relation.ParentColumnNames.Add("ID") relation.ChildColumnNames.Add("ParentID") RadGridView1.Relations.Add(relation) template.Rows.Add(1, "sugar", 2.0) template.Rows.Add(1, "cake", 12.0) template.Rows.Add(1, "butter", 3.0) template.Rows.Add(2, "cake", 12.0) Dim template2 As New GridViewTemplate template2.Columns.Add(New GridViewDecimalColumn("ParentID2")) template2.Columns.Add(New GridViewTextBoxColumn("TYPE")) template2.Columns.Add(New GridViewDecimalColumn("QTY")) RadGridView1.MasterTemplate.Templates(0).Templates.Add(template2) Dim relation2 As New GridViewRelation(RadGridView1.MasterTemplate.Templates(0)) relation2.ChildTemplate = template2 relation2.RelationName = "PersonProduct2" relation2.ParentColumnNames.Add("ParentID") relation2.ChildColumnNames.Add("ParentID2") RadGridView1.Relations.Add(relation2) template2.Rows.Add(1, "brown", 1) template2.Rows.Add(1, "whiter", 3) template2.Rows.Add(2, "banana", 2) I am getting errors at runtime when I try to see the 3rd level in the hyerarchy.
Gridview doesn't update binding source current position after sorting and selecting row with the same offset position from the begining
I have a form with a RadGridView that's bound to an list of Custom Objects. Each custom object has a property that is also a list of custom objects of a different class. I added a child template to the main grid for this property and created a relation between the two. Everything displays nicely and I can add new rows to the main grid. However, when I attempt to add a new row to one of the child grids, the row does not get added.
There is an exception when resetting the binding source on CellEndEdit after pressing Enter Comment: It is not correct to preserve the CurrentRow position when changing/reseting the binding source. Instead you can preserve its index and restore it when the data source is updated!
I still have the performance problem. I have attached the same project extende by a new button/(function to create a new group with one root entry and 100 sub-entries. This takes a while due to the log of the data context, but what really takes me off is the performance of the grid when opening this root entry. On my machine (i5, 4GB ram) it takes about 5-6 seconds for the sub-structure to open. The zip also contains an old version of the program and in the bin/debug folder you can find the "RadTest.exe" (as opposed to the RadTest2.exe), wich will open the sub-structure in no time. So - there must be something wrong with my way of working the grid. To reproduce: Run the program, click the "Generate" Button and enter a name for the new group. This will create 101 new entries (1 root, 100 subs), taking about 15-20 secs (which is ok, as I said above). Then open the "RootEntry" within the group -> takes 5-6 seconds. When the subentries are visible, scrolling the grid vertically is really slow as well.
RadGridView should be able to filter by enum values.