Declined
Last Updated: 13 Jul 2016 10:51 by ADMIN
sitefinitysteve
Created on: 29 Oct 2013 00:51
Category: ListView
Type: Feature Request
1
Hide on empty data
We use the RadListView a lot in Sitefinity, and often I want the ability to hide the listview on no data.

Problem with the EmptyDataTemplate is that the LayoutTemplate usually has headers in it or a ul wrapper.

Example:
<LayoutTemplate>
  <h2>Related Content</h2>
   <ul>
        <asp:PlaceHolder ...
   </ul>
</LayoutTemplate>

So in an emptydatatemplate, it's going to render in that placeholder and have a "Related Content" header...with no content...as you wouldnt want
<h2>Related Content</h2>
<ul>
  <li>No Content</li>
</ul>

I would love to have a property such that the control will just hide itself when there's no data on databound.

Reason I mention sitefinity is the templates ("views") are editable in the UI, so there's no ability to add custom code to handle an event.

So I guess it's a feature request for a new property or some other method to not render the layouttemplate.
1 comment
ADMIN
Rumen
Posted on: 13 Jul 2016 10:51
Declined due to lack of demand by the community.