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

Headers and footers shown when there is no data

2 Answers 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 07 Nov 2012, 06:04 PM
Hello
I am using quite an old version of radcontrols for asp.net ajax (q3 2008)
I have a NoRecordsTemplate for my grid for when there is no data to display but the grid still shows all of the headers and footers, including some custom aggregates I calculate in the ItemDataBound event and display in the grid footer.
How can i get the grid to show nothing else apart from the NoRecordsTemplate when there is no data?

thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 08 Nov 2012, 04:30 AM
Hi Andieje,

Please try setting the MasterTableView property 'ShowHeadersWhenNoRecords' to False.

ASPX:
<MasterTableView ShowHeadersWhenNoRecords="false"   . . .>

Thanks,
Shinu.
0
andieje
Top achievements
Rank 1
answered on 08 Nov 2012, 11:32 AM
thank-you. I didn't see that property. I was just looking on the radgrid and not the mastertableview.
Tags
Grid
Asked by
andieje
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
andieje
Top achievements
Rank 1
Share this question
or