This is a migrated thread and some comments may be shown as answers.

Duplicated child gridviews

4 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 10 Mar 2011, 03:27 PM
Hello,


When using hierarchical gridview, and acceding to the child gridview with the IDE, I noticed that at first I had only one child gridview, but after clicking on OK button, I got 2, then 4 identical gridviews. And they are displaying caption tabs saying "Table".

I tried to remove them, to keep only one, but then no child gridview was kept by the designer (gridviewTemplate was lost) , and compiling became impossible.

Is this a known bug ? Is there a way to safely remove the duplicated child gridviews and keep only one ?

Thank you for any help.

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 10 Mar 2011, 03:32 PM
Hi again Bruno,

I haven't experienced this issue before and it sounds as though you are adding more than one child template for the same set of child data.
First of all, please have a look at this help topic on binding to hierarcical data programatically, and if you need further help, then let me know
Thanks
Richard
0
Bruno
Top achievements
Rank 1
answered on 10 Mar 2011, 03:47 PM

Here is the code I found in my Designer file :

this.MygridView.MasterGridViewTemplate.ChildGridViewTemplates.AddRange(new Telerik.WinControls.UI.GridViewTemplate[] {
            this.gridViewTemplateDetailCurrent,
            this.gridViewTemplateDetailCurrent,
            this.gridViewTemplateDetailCurrent,
            this.gridViewTemplateDetailCurrent});

when only one gridViewTemplateDetailCurrent was needed. This code was obviously added by the IDE (not by me).

Removing by hand 3 gridViewTemplateDetailCurrent of this list solved my problem.
0
Richard Slade
Top achievements
Rank 2
answered on 10 Mar 2011, 03:57 PM
Hi Bruno,

Glad you have found a solution.
All the best
Richard
0
Stefan
Telerik team
answered on 15 Mar 2011, 03:22 PM
Hello Bruno,

Thank you for writing.

The provided information is not enough for me to determine what causes this behavior. Therefore, I would like to kindly ask you to open a new support ticket, where you provide a sample project and exact details on how to reproduce it. This will allow me to investigate your case and provide you with adequate support.

I am looking forward to your reply.

Greetings,
Stefan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Bruno
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Bruno
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or