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

RadGrid is invisible for empty datasource

1 Answer 202 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Balamurali Venkatesan
Top achievements
Rank 1
Balamurali Venkatesan asked on 30 Dec 2008, 11:28 PM
Hi,

Iam bindning a RadGrid Datasource on a Button click event. In that case the empty Radgrid is not visible during the page load.
On button click the Databinding happens and then the Rad grid becomes visible.

Is there any setting that need to be chnaged for making the Radgrid visible with empty records during page load.

Thanks
Bala

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Dec 2008, 04:49 AM
Hi

You can use the "Using NoRecordsTemplate"  and bind the RadGrid to an empty collection in the pageLoad. If you set the DataSource to null, this is the same as if the control is not bound at all.

C#
Radgrid1.DataSource = new Object[0];

Thanks,
Shinu

Tags
Grid
Asked by
Balamurali Venkatesan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or