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

"No records to display." doesnt show

2 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
July
Top achievements
Rank 2
July asked on 26 Jul 2011, 02:00 PM
I have this

protected void MatrixGridNeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            _matrixGrid.DataSource = CommonGrid.ListDocuments;
        }

Sometime CommonGrid.ListDocuments is Null... I need in this case that ""No records to display."  message appear.
But doesnt show it in Grid.
I set   _matrixGrid.MasterTableView.EnableNoRecordsTemplate = true;
I created the grid programmatically.


2 Answers, 1 is accepted

Sort by
0
Accepted
Genti
Telerik team
answered on 29 Jul 2011, 08:44 AM
Hi Julieta,

I tried to reproduce the issue on my side, but at no avail.
I assume the problem lies in the grid initialization.
So, I am attaching a sample project that illustrates how you can achieve that using programmatic grid creation.
Give it a try and let me know if I am missing anything.

Kind regards,
Genti
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
July
Top achievements
Rank 2
answered on 29 Jul 2011, 01:28 PM
THanks!
Tags
Grid
Asked by
July
Top achievements
Rank 2
Answers by
Genti
Telerik team
July
Top achievements
Rank 2
Share this question
or