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

[Solved] RadGrid : NoMasterRecordsText : fontcolor change property

3 Answers 345 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bharat kumar
Top achievements
Rank 1
bharat kumar asked on 27 Jan 2010, 04:28 PM
Hi,

I want to change the color to red when there is no records in grid to display with message " No records!" but could not able to find out the property to chnage the font color.
i used the

NoMasterRecordsText

 

="<span class=red>No records!</span>"

 

but it doesn't work still text shown in default color.

please Suggest.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Jan 2010, 04:56 AM
Hi Bharat Kumar,

One suggestion to achieve this is by adding 'NoRecordsTemplate' with your own styles as shown below.

ASPX:
 
  . . . 
<MasterTableView AutoGenerateColumns="False" > 
   <NoRecordsTemplate> 
       <div style="color: Green"
            No Records! 
       </div> 
   </NoRecordsTemplate> 
</MasterTableView> 
  . . . 

-Shinu.
0
bharat kumar
Top achievements
Rank 1
answered on 28 Jan 2010, 09:10 AM
Hi Shinu,

thank you very much for your help.
it works...

thanks once again.
0
bharat kumar
Top achievements
Rank 1
answered on 28 Jan 2010, 09:10 AM
Hi Shinu,

thank you very much for your help.
it works...

thanks once again.
Tags
Grid
Asked by
bharat kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
bharat kumar
Top achievements
Rank 1
Share this question
or