Last Updated: 06 Aug 2020 09:38 by ADMIN
Created on: 06 Aug 2020 09:31
Category: GridView
Type: Bug Report
RadGridView: incorrect captions for the child GridViewTemplate

Please refer to the attached sample project. 

If the main Cars list is not empty, the child templates have correct captions:

However, if initially there are no Cars and you add a new one via the new row, the captions of the child template remains with the default value ("table"):

Attached Files:
1 comment
Dess | Tech Support Engineer, Principal
Posted on: 06 Aug 2020 09:38

Hi, Patric,

When the main BindingList is empty, the ObjectRelation remains with empty Name. The ListBindingHelper.GetListName(object list, PropertyDescriptor[] listAccessors) is used to determine the name of the relation.

Currently, the possible solution that I can suggest is to specify the captions programmatically once the grid bound: 

        Me.RadGridView1.MasterTemplate.Templates(0).Caption = "test1"
        Me.RadGridView1.MasterTemplate.Templates(1).Caption = "test2"

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Dess | Tech Support Engineer, Sr.
Progress Telerik