RadGridView Summary row

1 Answer 112 Views
GridView
Siddharth
Top achievements
Rank 1
Siddharth asked on 17 Nov 2023, 10:46 AM

Hi,

 

I want to hide grid column but condition is,  summary row column should not be hidden.

I want to display summary column but not grid column.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 17 Nov 2023, 11:52 AM

Hello Siddharth,

Thank you for contacting us.

If I have correctly understood your scenario, you want to have a summary row for a column that is not visible in the RadGridView. In this case, you will need to create a custom GridViewSummaryItem. You can override its Evaluate method where you can get the values of the hidden column and make your calculations.

To better demonstrate what I have in mind, I have created a sample project and attached it here. The RadGridView has two columns. The first one shows an integer value and it is hidden. The summary is set in the second column. However, in the Evaluate method of the custom GridViewSummaryItem class, I am calculating the values of the first column. Here is the result:

Here is when the first column is not hidden:

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.

Tags
GridView
Asked by
Siddharth
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or