Want to increase height of GroupPanelElement when user puts more columns for grouping inside that GroupPanelElement ?

1 Answer 42 Views
GridView
Shubham
Top achievements
Rank 2
Iron
Iron
Iron
Shubham asked on 14 Jul 2023, 12:27 PM

Hi ,

As user puts more more column for grouping i need to increase height of GroupPanelElement so that it can show all column which are used in grouping without scrolling.
Also, Want to decrease size if user remove column from grouping.

 

Thanks,
Shubham Jain

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 Jul 2023, 12:48 PM

Hi, Shubham,

You have access to the panel by the GridViewElement.GroupPanelElement property. To increase its height you can set the MinSize property. Check the following code snippet:

     this.radGridView1.GridViewElement.GroupPanelElement.MinSize = new System.Drawing.Size(0,80);

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Shubham
Top achievements
Rank 2
Iron
Iron
Iron
commented on 18 Jul 2023, 04:55 AM

Hi Dess,

The Property which you mentioned is correct but full answer for the question would be like below.

private void RadGrdSearch_GroupByChanged(object sender, GridViewCollectionChangedEventArgs e)
    {
       //radGrdSearch gridname it could be yours gridname
        this.radGrdSearch.GridViewElement.GroupPanelElement.MinSize = this.radGrdSearch.GroupDescriptors.Count * new System.Drawing.Size(0, 30);
    }
Tags
GridView
Asked by
Shubham
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or