As pointed out in the question:
EmptyDataTemplate and EmptyDataText not working in GridView
using CSS-Friendly Control Adapters removes the data that would would be populated by EmptyDataTemplate or specified in EmptyDataText in GridView.
One of the solutions is to disable the addapters for GridView components as specified in this answer
Is there a solution, that would allow to keep the use of CSS-Friendly Control Adapters for GridView and still take advantage of EmptyDataTemplate functionality?
Add the following to RenderContents in GridViewAdapter.cs right before the ///// BODY //// section /////////////// EmptyDataTemplate ///////////////////////
And add the following to GetRowClass right before return className.Trim();
Finally, if you want to override the standard tfoot style, add a CSS section
If you look at the source for the CSS-Friendly adapter for GridView, provided in your link, you will see the following (note the missing else):
Basically the adapter makes no mention of EmptyDataTemplate or EmptyDataText - it's a simple oversight. Patching it is straightforward though. All you have to do is take the source provided, look at how the original GridView renders it, combine the concepts, and rebuild the original adapter:
Build cssfriendly from source instead of using the download link. Currently the latest is http://cssfriendly.codeplex.com/SourceControl/changeset/changes/24242 and EmptyDataText is working fine for me when I use that source.