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

View Issues gridview with childs

10 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
gerbrand
Top achievements
Rank 2
gerbrand asked on 10 Apr 2009, 03:08 PM
I've got something strange... 

My third child, when having only 1 row, it's not showing the row.

I took a screenshot of it

http://picasaweb.google.com/gerbrand.adlogix/TelerikViewIssues?feat=directlink

I'm not doing anything special in my code to make the grid. I've got it only with one record. When I have more records, I get to see them.


10 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 13 Apr 2009, 02:25 PM
Hello gerbrand,

Thank you for contacting us. It is a known issue and we are working on it, but I cannot be more specific at the time being. Please excuse us for the introduced inconvenience. I have updated your Telerik points. I will write you back if we find a work-around.

Sincerely yours,
Nick
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Matt Alexander
Top achievements
Rank 1
answered on 14 Apr 2009, 01:54 PM
I'm having the same problem, although it doesn't matter if my third child GridView has more than one row I still can't see them. The height of the third level grid is set so small you can't see the records.

Is there anyway to manually set the height of the child GridView?

Thanks,

Matt.
0
Matt Alexander
Top achievements
Rank 1
answered on 15 Apr 2009, 10:36 AM
Hi,

I found a work around on another post on the forum.

This seems to do the trick

    Private Sub radGridView_ViewCellFormatting(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles radGridView.ViewCellFormatting  
        If TypeOf (e.CellElement) Is Telerik.WinControls.UI.GridDetailViewCellElement Then 
            Dim cell As GridDetailViewCellElement = TryCast(e.CellElement, GridDetailViewCellElement)  
 
            cell.RowInfo.Height = 500  
        End If 
    End Sub 

Just adjust the row height as you need to.

I hope the correct fix doesn't take too long to appear in a service release though!

Regards,

Matt.
0
Nick
Telerik team
answered on 17 Apr 2009, 03:53 PM
Hello Matt Alexander,

Thank you for the feedback.

Kind regards,
Nick
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
Matt Alexander
Top achievements
Rank 1
answered on 19 Apr 2009, 06:58 PM
Hi again,

Although the fix mentioned does fix the immediate issue. It is far from perfect. you end up with oversized rows and you seem to need to increase the row size by quite a bit to get it to work.

I was dissapointed to note that this has not been fixed in 2009 Q1 SP1. I would consider this an urgent fix as it does cause display problems.

How often do you release service packs for your control sets? Can you put this forward for a fix in the next one?

Thanks very much.

Matt.

0
Jack
Telerik team
answered on 22 Apr 2009, 07:21 AM
Hello Matt,

I understand your concerns and we will try to address this issue ASAP. Currently we don't plan a service pack before the Q2 2009 release. However, if this is a show stopper for you we could provide an internal build that addresses the issue.

I have some concerns that this issue is different from the mentioned at the beginning of  this thread. Could you please send us a sample project that reproduces it. This will help us locate the issue and find a proper solution.

I am looking forward to your reply.

Regards,
Jack
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
Matt Alexander
Top achievements
Rank 1
answered on 22 Apr 2009, 09:40 AM
Hi Jack,

Thanks for your reply.  I have opened a support ticket attaching a sample project as I don't seem to be able to attach one here.

It shows the problem very well. I have included a bin folder with the Q1 09 version of the controls i'm using just to make sure i'm not compiling against an old version!

Thanks for you help, your support is the best in the business!

Regards,

Matt.
0
Jack
Telerik team
answered on 22 Apr 2009, 11:07 AM
Hello Matt,

Thank you for the sample project. I will write you back in the support ticket you wrote. If you have any other questions, please don't hesitate to write us.

Greetings,
Jack
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
Matt Alexander
Top achievements
Rank 1
answered on 22 Apr 2009, 12:50 PM

Below is the answer on my support ticket. Thought it might be useful to someone reading the thread...


Now I understand the issue. The child view height isn't changed when expanding collapsing child views. The height is measured only when expanding a view. We will take into consideration this scenario when developing our future releases.

You could use the ChildViewExpanded event to measure the correct size. Here is a sample:

    Private Sub RadGridView1_ChildViewExpanded(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.ChildViewExpandedEventArgs) Handles RadGridView1.ChildViewExpanded    
        If e.IsExpanded Then    
            If Not e.ParentRow.ViewInfo.ParentRow Is Nothing Then    
                If e.ParentRow.ViewInfo.ParentRow.ChildRow.Height < 250 Then    
                    e.ChildRow.Tag = e.ParentRow.ViewInfo.ParentRow.ChildRow.Height    
                    e.ParentRow.ViewInfo.ParentRow.ChildRow.Height = 250    
                End If    
            End If    
        End If    
    End Sub    
 

As supplied by Jack in Telerik tech support.

Thanks again Jack!

Regards,

Matt.
0
Jack
Telerik team
answered on 22 Apr 2009, 01:49 PM
Hello Matt,

Thank you for sharing my answer with the community. This will surely help others in their development process. I am glad to hear that I was of help.

Regards,
Jack
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.
Tags
GridView
Asked by
gerbrand
Top achievements
Rank 2
Answers by
Nick
Telerik team
Matt Alexander
Top achievements
Rank 1
Jack
Telerik team
Share this question
or