RadGridView problem using ExpandAllGroups

5 posts, 0 answers
  1. Gabriel
    Gabriel avatar
    3 posts
    Member since:
    Jul 2016

    Posted 19 Jul Link to this post

    Hello,

    I'm having trouble to automatically expand all groups within a RadGridView. I set the AutoExpandGroups to true and also call the RadGridView's method ExpandAllGroups(). It does expand all the groups, but it also adds an unwanted white space to my grid, that vanishes after I manually collapse one of the groups.

    I also tried to set the GroupRenderMode to Flat. It solves the white space issue, but it adds unwanted information to my groups' headers.

    Is there a way to make it work properly?

     

    *Telerik UI for WPF version 2015.3.930.45

    Thanks in advance.

  2. Gabriel
    Gabriel avatar
    3 posts
    Member since:
    Jul 2016

    Posted 20 Jul in reply to Gabriel Link to this post

    No one?
  3. UI for WPF is Visual Studio 2017 Ready
  4. Stefan X1
    Admin
    Stefan X1 avatar
    523 posts

    Posted 22 Jul Link to this post

    Hi Gabriel,

    In general, with both GroupRenderMode's, the GroupHeader should be displaying the value of the property over which the control is grouped. Can you please clarify what is the undesired content being added with Flat GroupRenderMode?

    Regards,
    Stefan X1
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  5. Gabriel
    Gabriel avatar
    3 posts
    Member since:
    Jul 2016

    Posted 22 Jul Link to this post

    Hi Stefan, thanks for the reply. Yes, the Flat GroupRenderMode is showing the value of the property, but I don't need it to be displayed. Is there a way to hide it?
  6. Stefan X1
    Admin
    Stefan X1 avatar
    523 posts

    Posted 27 Jul Link to this post

    Hello Gabriel,

    As stated in my previous reply, the property value should be displayed with both GroupRenderMode's. Since you need to remove it, you can modify the template of GridViewGroupRow and simply remove its ContentPresenter element.

    In addition, you may find the Editing Control Templates topic useful on this matter.

    Best Regards,
    Stefan X1
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready