View Issues gridview with childs

11 posts, 0 answers
  1. gerbrand
    gerbrand avatar
    78 posts
    Member since:
    Mar 2009

    Posted 10 Apr 2009 Link to this post

    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.


  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 13 Apr 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Matt Alexander
    Matt Alexander avatar
    7 posts
    Member since:
    Sep 2002

    Posted 14 Apr 2009 Link to this post

    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.
  5. Matt Alexander
    Matt Alexander avatar
    7 posts
    Member since:
    Sep 2002

    Posted 15 Apr 2009 Link to this post

    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.
  6. Nick
    Admin
    Nick avatar
    767 posts

    Posted 17 Apr 2009 Link to this post

    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.
  7. Matt Alexander
    Matt Alexander avatar
    7 posts
    Member since:
    Sep 2002

    Posted 19 Apr 2009 Link to this post

    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.

  8. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 22 Apr 2009 Link to this post

    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.
  9. Matt Alexander
    Matt Alexander avatar
    7 posts
    Member since:
    Sep 2002

    Posted 22 Apr 2009 Link to this post

    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.
  10. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 22 Apr 2009 Link to this post

    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.
  11. Matt Alexander
    Matt Alexander avatar
    7 posts
    Member since:
    Sep 2002

    Posted 22 Apr 2009 Link to this post

    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.
  12. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 22 Apr 2009 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready