The problem is coming from the fact that we are setting the grid control to Visible=false if there are no records to display. Additionally we are not binding it to the empty collection, which is also needed for the NoRecordsTemplate to be shown.
You can inherit from the MasterTableView class and override the DataBindDocumentList method like so:
CustomMasterTableView : MasterTableView
.TotalCount == 0)
Build and then register the view by going to Administration->Settings->Advanced->ContentView->Controls->FrontendDocuments->Views->MasterTableView.
In the ViewType field register the type of the custom view following the convention <namespace>.<class> and in our case SitefinityWebApp.CustomMasterTableView
. Hit Save and restart the application. Now the NoRecordsTemplate
should be displayed if an empty library is selected.
All the best,
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items