Completed
Last Updated: 06 Jul 2016 15:36 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 16 Feb 2016 06:45
Category: GridView
Type: Bug Report
2
FIX. RadGridView - crash in Property Builder while deleting and adding a column in ColumnGroupsViewDefinition
To reproduce: 
1.Set the GridView template's ViewDefinition to ColumnGroups
2.Add a new column
3.Delete the column
4.Add another new column. The PropertyBuilder closes and it is not possible to open the Smart Tag of RadGridView anymore. Please refer to the attached gif file.

Workaround:
The issue is caused by a remaining reference to a deleted column. When using the RadGridView PropertyBuilder and a column is added to ColumnGroupsViewDefinition, once the column is deleted from RadGridView (via the Property Builder) the code for adding the column in the ColumnGroupsViewDefinition remains, and this causes further designer instability with the Property Builder.

To handle this scenario there are two options:
1. When a column is deleted via Property Builder, and this column was part of ColumnGroupsViewDefinition, open the Designer.cs/vb file, locate the line that adds this column to a ColumnNames collection and delete it. It should be something like:
gridViewColumnGroupRow3.ColumnNames.Add("column1"); - where "column1" is the name of the deleted column

2. Instead of using the Property Builder to build the ColumnGroupsViewDefinition, build it programmatically.
Attached Files:
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
5 comments
ADMIN
Stefan
Posted on: 06 Jul 2016 15:36
Hi Patrick,

if it is the same issue, you can post the steps how we should reproduce it here or via ticket (just mention this item). Then we will check the precise case and if confirmed, we will either reopen this issue, if it proves to be the same problem, or create a new item for it.

Patrick
Posted on: 06 Jul 2016 14:24
Hi Stefan, I already have the Q2 2016 version (2016.2.608.40), and I have the same problem. Should I create a ticket for that? Or is there a way to check if something else could create the same problem? Thanks!
ADMIN
Stefan
Posted on: 06 Jul 2016 13:43
Hi Patrick,

the issue is already resolved with our Q2 2016 release (see the Scheduled for and the Status fields in the pane on the right). Feel free to upgrade to Q2 2016 or later version in order to take advantage of the fix.
Patrick
Posted on: 05 Jul 2016 17:54
Hi! Just want to know when do you think the fix will be in production ? Thanks!
Imported User
Posted on: 17 Feb 2016 13:38
I experienced this and the fix was to redo the grid layout programmatically.
I am using the column builder to build the columns then using code to create the group views.
Using this hybrid approach allows you to still use the GUI for most of your work while avoiding getting your grid layout trashed.

Joe