Disable group expand/collapse on grid

5 posts, 0 answers
  1. Nabil Shuhaiber
    Nabil Shuhaiber avatar
    14 posts
    Member since:
    Sep 2009

    Posted 27 Aug 2010 Link to this post

    How can I disable the on click expand/collapse of a group on the grid. I want my groups to be fixed.

    Thanks
    Regards,
    Nabil
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 27 Aug 2010 Link to this post

    Hello Nabil Shuhaiber,

    Please be more specific about your requirements and expectations. Are trying to create groups without allowing the end-user to change them ? If that is the case you may define the desired GroupDescriptor and set the property of the grid ShowGroupPanel to "False".
    If that does not meet your requirement, we would need more details about your scenario in order to provide you with an appropriate solution. 

    Regards,
    Maya
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Nabil Shuhaiber
    Nabil Shuhaiber avatar
    14 posts
    Member since:
    Sep 2009

    Posted 27 Aug 2010 Link to this post

    Maya,

    I am grouping my data using two groups/aggregates. Currently when the the user clicks the group header it collapses/expands. I don't want this to happen. I want the header displayed but not the ability to collapse/expand. Is this possible?
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 27 Aug 2010 Link to this post

    Hi Nabil Shuhaiber,

    Yes that is possible-to achieve this result you have to restyle the whole GridViewGroupRow,and set the IsHitTestVisible to False for the required parts within the template.
    I am sending you an example that demonstrates this approach.
    Please let me know if you need any further assistance.

    All the best,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Daniel
    Daniel avatar
    2 posts
    Member since:
    Sep 2012

    Posted 11 Aug 2015 Link to this post

    Updated Notice

    Its now much easier theres an event called GroupRowIsExpandedChanging on the RadDataGridView that if you set e.Cancel = true will stop the user from collapsing the group or expanding it.

Back to Top
DevCraft banner