Nonstandard Row Height and Grouping Panel Drawing

3 posts, 0 answers
  1. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 12 Oct 2009 Link to this post

    When I set the grid to smaller Row Size like that:

    grid.GridElement.RowHeight = (int)Math.Floor(this.GridElement.RowHeight * 0.9); 
    grid.GridElement.TableHeaderHeight = (int)Math.Floor(this.GridElement.TableHeaderHeight * 0.95); 

    The dynamic sizing of the Grouping Panel does not seem to function correctly anymore. The grouped Headers are not drawn properly and the x mark is barely visible anymore.

    What's the correct way to make data rows a little smaller, but retain the functionality of the grouping panel?


  2. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 14 Oct 2009 Link to this post

    Update: The problem seems to be related with the order of initialization.

    If I change the Column Height after setting ShowGroupPanel and EnableGrouping to true, it works as expected.
    But if I change the Column Heighhbefore I set ShowGroupPanel, the grouping panel will not be drawn correctly.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jack
    Jack avatar
    2333 posts

    Posted 15 Oct 2009 Link to this post

    Hi erwin,

    I am glad to hear that you have found a solution for this issue. However, the drawing shouldn't depend on the initialization order. We will research the case further and the issue will be addressed in one of our upcoming releases. Don't hesitate to contact us if you have other questions.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top