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

Visibility for footer text

2 Answers 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Petter
Top achievements
Rank 1
Petter asked on 21 Feb 2014, 06:29 AM
Hi,

I am using an aggregate function to display the sum of the column values in the footer. But in some cases I want to hide the footer text. Is this possible to do in runtime (i.e. set visibility for footer text)?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 21 Feb 2014, 11:31 AM
Hello Petter,

In order to achieve your goal, you need to use custom footer as shown in this demo. The same example is available in your local copy of WPF demos. Then you can bind the Visibility property of the TextBlocks to a boolean property in your ViewModel. For your convenience, I have prepared a sample project showing you the approach.

Regards,
Yoan
Telerik
0
Petter
Top achievements
Rank 1
answered on 24 Feb 2014, 01:32 AM
Thanks for that!
Tags
GridView
Asked by
Petter
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Petter
Top achievements
Rank 1
Share this question
or