Can We Increase Height Of Summary Row In Telerik Grid?

1 Answer 70 Views
GridView
Shubham
Top achievements
Rank 2
Iron
Iron
Iron
Shubham asked on 29 Jun 2023, 11:33 AM

Actually, I want to show some text in a row in grid and that row must not be divided by columns.so I am using summary row for that but my text is not able to accommodate inside that if I can increase height of summary row it will come in that.

In Below Image It was 3 line text in top summary row but I can see only 2 line text.

I just wanted to increase row height of summary row not to increase row height for all rows.

Open for other solutions as well it should just complete my needs.

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 29 Jun 2023, 12:42 PM

Hi Shubham,

I appreciate the provided details.

To increase the height of the summary row only, you can subscribe to the ViewRowFormatting event of the RadGridView. In the event handler, you can check the type of the incoming RowElement. If it is GridSummaryRowElement, set the RowInfo.Height property per your requirements.

this.radGridView1.ViewRowFormatting += RadGridView1_ViewRowFormatting;

private void RadGridView1_ViewRowFormatting(object sender, RowFormattingEventArgs e)
{
    if (e.RowElement is GridSummaryRowElement)
    {
        (e.RowElement as GridSummaryRowElement).RowInfo.Height =  60;
    }
}

I hope that this approach will work for you.

Regards,
Dinko | Tech Support Engineer
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 30 Jun 2023, 06:47 AM

Thankyou !! Dinko
It works for me.
Tags
GridView
Asked by
Shubham
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or