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

Hiding DetailTables in RadGrid

4 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
BC
Top achievements
Rank 1
BC asked on 26 Apr 2011, 09:24 PM
Hi,

How would I hide DetailTables inside RadGrid when the datasource from database has no records?
Any help is much appreciated. We are using Q3 2009.
Thanks,
BC.

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Apr 2011, 06:30 AM
Hello,

You can achieve this by setting ShowHeadersWhenNoRecords as false.

ASPX:
<telerik:GridTableView  DataKeyNames="OrderID" Name="DetalTable1" ShowHeadersWhenNoRecords="false">
</telerik:GridTableView>

Thanks,
Princy.
0
BC
Top achievements
Rank 1
answered on 27 Apr 2011, 04:36 PM
Princy,

Thanks for your quick response. I have tried that option in the past and it doesn't server my purpose here. I have three detail tables inside the grid and when I set ShowHeadersWhenNoRecords=False, it hides the table but still shows No Records Template text. In my case it displays three times of that text which is not wanted.

How can I get rid of that and hide the entire detail table view?

Thanks,
BC.
0
Accepted
Pavlina
Telerik team
answered on 27 Apr 2011, 05:32 PM
Hello,

Please examine the solution presented in the help article below and let me know if it works for you:
http://www.telerik.com/help/aspnet-ajax/grid-hide-expand-collapse-images-when-no-records.html

Regards,
Pavlina
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
BC
Top achievements
Rank 1
answered on 03 May 2011, 05:19 PM
Hi Pavlina,

Your post below helped me resolve the issue. Thanks a lot.

BC.
Tags
Grid
Asked by
BC
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
BC
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or