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

Can't see lower level child template!!!

10 Answers 219 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 06 Nov 2008, 06:01 AM
Can anyone please help.. I have create multiple child hierarchical grid but i cant seem to see the fourth level and fifth level. I dont know if its the size of the child template is the problem or something else. Isn't the child template autoresized?

Here is a copy of my code, if the problem is not what i stated please tell me what i'm missing thanks!
 
if (list.Keys.Count > 0)
            {
                //Child Template
                GridViewTemplate template = new GridViewTemplate();
                template.AllowAddNewRow = false;
                template.Columns.Add(new GridViewTextBoxColumn("ParentID"));
                template.Columns.Add(new GridViewTextBoxColumn("ID"));
                template.Columns.Add(new GridViewTextBoxColumn("Key"));
                template.Columns.Add(new GridViewTextBoxColumn("Value"));
                parentTemplate.ChildGridViewTemplates.Add(template);
                //Relation
                GridViewRelation relation = new GridViewRelation(parentTemplate);
                relation.ChildTemplate = template;
                relation.ParentColumnNames.Add("ID");
                relation.ChildColumnNames.Add("ParentID");
                radGridView1.Relations.Add(relation);
                //Get Key and Value
                foreach (string str in list.Keys)
                {
                    GridViewTemplate newTemplate = parentTemplate.ChildGridViewTemplates[0];
                    newTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
                    childCtr = childCtr + 1;
                    string strCtr = parentID.ToString() + childCtr.ToString();

                    if (list.ValueIsList(str))
                    {                        
                        LogEntryPropertyList listChild = list.GetList(str);
                        newTemplate.Rows.Add(parentID, strCtr, str, null);
                        newTemplate.Columns[0].IsVisible = false;
                        newTemplate.Columns[1].IsVisible = false;
                        parseLogEntryList(listChild, newTemplate, ulong.Parse(strCtr));
                    }
                    if (list.ValueIsString(str))
                    {
                        newTemplate.Rows.Add(parentID, strCtr, str, list.GetString(str));
                        newTemplate.Columns[0].IsVisible = false;
                        newTemplate.Columns[1].IsVisible = false;
                    }
                }
            }

10 Answers, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 06 Nov 2008, 09:24 AM
I checked your examples and the same problem is in there in the Hierarchy section of the gridview. When you expand all the levels sometimes you can only see half row and cant read the content. Can you do something about this? We need this in our project because where creating multilevel hierarchy that can go more than 5 levels. Thanks in advance.
0
Nikolay
Telerik team
answered on 06 Nov 2008, 10:24 AM
Hello Paul,

You are correct. We have an issue with the child templates which prevents you from seeing their content properly in some scenarios. This issue will be addressed in one of our next releases. Unfortunately, I cannot provide you with a workaround for the time being. Please excuse us for the inconvenience.

If you have additional questions, feel free to contact me.

Best wishes,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paul
Top achievements
Rank 1
answered on 06 Nov 2008, 10:32 AM
We are looking forward to the enhancements in your next release. Thanks!
0
Alon
Top achievements
Rank 1
answered on 10 Aug 2009, 11:54 AM
Does anyone know if this has been addressed? -or- when it may be updated? I know a lot of changes were made to the gridView recently, but my app still exhibits this behavior. So I am hoping that maybe I missed a property or a new "trick/work around" that will allow my application to function. Thanks in advance!
0
Nikolay
Telerik team
answered on 10 Aug 2009, 12:27 PM
Hi Alon,

Although the logic for calculating the height of the child grid views is not changed, you can easily resize them by a mouse drag-and-drop operation. Alternatively, you can set a custom height programmatically. Both approaches are documented in this help article.

You can also refer to this forum post regarding the topic of resizing a child grid view programmatically.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Alon
Top achievements
Rank 1
answered on 10 Aug 2009, 12:35 PM
Cool, thanks! That is what I was looking for.
0
Ruth Goldberg
Top achievements
Rank 1
answered on 18 Feb 2010, 05:49 PM
I just created a grid with 5 levels and can only display the first 3. When I click on the + of the fourth level, nothing happens. It's over a year since this problem was identified and I have the latest updates. Has anything been done? Under which scenarios does this happen? Maybe I can change some of the settings. In my grid, the first four levels are display only (no add, edit or delete) and the fifth one can be updated. Is this causing the problem? I'm also not displaying all the columns on each level. Otherwise, there is nothing special about it.
0
Nikolay
Telerik team
answered on 22 Feb 2010, 12:38 PM
Hello Ruth Goldberg,

The layout calculations of hierarchical RadGridView have been improved during the last year. However, recently we discovered that there are still some issues with the layout. There are no specific circumstances under which this happens, the height of the child GridViewInfos is just not calculated property when there are four or more levels of hierarchy. We will do our best to address this issue in the first service pack of Q1 2010.

Regards,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ruth Goldberg
Top achievements
Rank 1
answered on 15 Mar 2010, 08:41 PM
I installed Q1 2010 and I still can't see the fourth level.
0
Jack
Telerik team
answered on 17 Mar 2010, 02:42 PM
Hi Ruth Goldberg,

Thank you for writing us back.

It seems that we have missed a case. Could you send us your application, so that I can research the issue in detail and try to find a proper solution? You can do so in a new support ticket.

I am looking forward to your project.

Kind regards,
Jack
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Nikolay
Telerik team
Alon
Top achievements
Rank 1
Ruth Goldberg
Top achievements
Rank 1
Jack
Telerik team
Share this question
or