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

EmptyDataText

2 Answers 292 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patxi
Top achievements
Rank 1
Patxi asked on 02 Mar 2009, 04:50 PM
Hello,

I would like to know what is the equivalent of EmptyDataText of Gridview for RadGrid. I am using ResourceManager property to show a message in my RadGrid when not founding any record.

This would be an example for GridView, being grdMaestro the ID of a RadGrid.
         grdMaestro.EmptyDataText = GestorRecursos.GetString("ListadoSinDatos");

If I want to use the same for RadGrid I get an error because EmptyDataText is not a proper property for a Radgrid.

Do you know what would be for RadGrid?

Besides,  do you know any interesting link to get information about these things?

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 03 Mar 2009, 04:25 AM
Hi,

You can set the NoMasterRecordsText property for achieving the desired scenario.

CS:
 
RadGrid1.MasterTableView.NoMasterRecordsText = GestorRecursos.GetString(
"ListadoSinDatos"); 


Shinu
0
Patxi
Top achievements
Rank 1
answered on 04 Mar 2009, 04:15 PM
I forgoto to answer. Sorry.

You are right. That´s the correct answer. It´s already ok :)

Thank you a lot.
Tags
Grid
Asked by
Patxi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Patxi
Top achievements
Rank 1
Share this question
or