This is a migrated thread and some comments may be shown as answers.

0 Records in Grid Total Row

3 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 31 Jan 2011, 11:29 PM
Hello,

I use an AggregateFunction on a column to show the number of records in total row at the bottom of my Telerik RadGridView. I would like this to show "Results: 0" when there are no records - is this possible? I have seen a way to show this in the grid but I want to keep a consistient UI and display it in the footer row (which does appear when there are no records but does not show anything).
                    <telerikGrid:GridViewDataColumn.AggregateFunctions>
                        <telerik:CountFunction 
                            Caption="Results: " />
                    </telerikGrid:GridViewDataColumn.AggregateFunctions>
Thanks
Rodney

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 03 Feb 2011, 03:09 PM
Hello Rodney,

You may handle the CollectionChanged event of the AggregateResults collection of the grid. Once its count is zero, you may assign the content of the corresponding footer to be "Result: 0".
I am sending you a sample project illustrating this approach.
 

Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Keerti
Top achievements
Rank 1
answered on 26 May 2011, 03:56 PM
Hi Maya,

My requirement is that i want to have a single caption for all aggregate functions in my Telerik grid , instead of displaying the caption at each column i want to display at a single place like for example on the row indicator in the column footer. Can you let me know how i can achieve this ?

Have a look at the attachment.

Thanks & Regards,
Keerti Somasundaram
0
Vanya Pavlova
Telerik team
answered on 26 May 2011, 04:08 PM
Hi Rodney,

 

You may edit the template of GridViewFooterRow in order to achieve the desired result. If you need more info about RadGridView's styling please refer to our online documentation


Please give it a try and in case you need any further assistance do not hesitate to contact us!


Regards,
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
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Maya
Telerik team
Keerti
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or