show/hide expand button

7 posts, 0 answers
  1. lamees
    lamees avatar
    56 posts
    Member since:
    Jul 2006

    Posted 28 Feb 2008 Link to this post

    Hey,
          Can I show/hide in my hierarchial grid. I want to hide the expand/collapse button if there's no data in my child table.
    thank you     
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 28 Feb 2008 Link to this post

    Hello lamees,

    Thank you for contacting me.

    Currently we do not support this feature. We will consider adding it in our Q1 2008 release.

    Do not hesitate to write me, if you need further assistance.

    Sincerely yours,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. lamees
    lamees avatar
    56 posts
    Member since:
    Jul 2006

    Posted 28 Feb 2008 Link to this post

    when will be the release? I am waiting for many features in it :)
  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 28 Feb 2008 Link to this post

    Hello lamees,

    Thank you for getting back to me.

    We plan to release the Q1 2008 version of RadControls for WinForms in the beginning of April. We will highly appreciate if you send us a summary list of the features you expect to see in this release.

    Let me know, if you have other questions.

    Sincerely yours,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. lkeel
    lkeel avatar
    115 posts
    Member since:
    Jul 2012

    Posted 01 Apr 2009 Link to this post

    I am currently running the Q1 2009 release.  Was the functionality to hide/show the plus sign ever implemented?  If so, what is the property to turn it off or how do I do it?

    Thanks,
    LK
  7. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 02 Apr 2009 Link to this post

    Hi lkeel,

    Thank you for this questions.

    Yes this functionality is available with Q1 2009 of RadControls for WinForms. You could use the code below to hide the "+" sign where no child rows are available:

    void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e) 
        if (e.CellElement is GridGroupExpanderCellElement && e.CellElement.RowElement is GridDataRowElement) 
        { 
            GridViewRowInfo[] rows = e.CellElement.RowInfo.ViewTemplate.ChildGridViewTemplates[0].GetChildRows(e.CellElement.RowInfo); 
            e.CellElement.ShouldPaint = rows != null && rows.Length > 0; 
        } 

    I hope this helps. Should you have any other questions, don't hesitate to write us.

    Best wishes,
    Jack
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  8. lkeel
    lkeel avatar
    115 posts
    Member since:
    Jul 2012

    Posted 03 Apr 2009 Link to this post

    This code segment worked great.  Thanks!
Back to Top
UI for WinForms is Visual Studio 2017 Ready