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

Empty grid on initial load with EmptyMessage

1 Answer 331 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Abhijit Shetty
Top achievements
Rank 2
Abhijit Shetty asked on 15 Mar 2011, 06:52 PM
Hi All,

I have a RadGrid in my page. I'm neither binding it on client side nor in server side, and on initial load RadGrid appears with 11 empty rows; instaed of empty grid with EmptyMessage.

I just want to drag and drop a RadGrid and on initial load get a radgrid with emptyMessage instead of 11 blank rows. How can i achieve this?

Thanks in advance for helping.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Mar 2011, 06:48 AM
Hello Abhijit,

You can see RadGrid with emptyMessage whenever the datasource return an empty record dataset. To show such messages you need to enable the NoRecordsTemplate property of the Radgrid. When the NoRecordsTemplate is set to true it will show the empty template if there are no data return from the datasource. For more information on this refer following documentation.
Using NoRecordsTemplate

Thanks,
Princy.
Tags
Grid
Asked by
Abhijit Shetty
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or