+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / EmptyDataTemplate

EmptyDataTemplate

5 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    07 Jul 2011
    Link to this post
    You need to provide users a better way to define an emptydata template for the RadListView templates...

    I shouldn't have to write serverside code against a template in order to just say "No Results" (or whatever)

    <script runat="server">
     protected void Page_PreRender(object sender, EventArgs e){
      if(NewsList.Items.Count == 0)
          emptyTemplatePanel.Visible = true;
    }
    </script>
     
    <asp:Panel id="emptyTemplatePanel" runat="server" Visible="False">
          <h2>No Results to Display</h2>
    </asp:Panel>

    ...A user can't write that, if they use a news or event widget somewhere by default it'll show nothing if the taxons filter out all the results.
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    12 Jul 2011
    Link to this post
    Hi Steve,

    I agree. 
    I have logged this for improvement. Thanks, as always!

    Best wishes,
    Georgi
    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
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    12 Jul 2011
    Link to this post
    Thanks, hey can you PITS this for me so I can track when its complete so I can go back and remove the custom parts from these templates?

    I'm always leery to hack things in just to get them working NOW knowing you guys will implement these things later...
  4. Stephen2
    Stephen2 avatar
    94 posts
    Registered:
    05 Feb 2012
    14 Dec 2012
    Link to this post
    Hi Sitefinity,

    Please improve this as it's still not implemented as of 5.2, and I guess it's too late for 5.3 (it's not in there, by any chance??)  As a checklist of "Development Rules", I have just added "All collection lists must have an empty data template" - and then found it doesn't work with the Out of the Box controls!  DAMN.... More programming level interaction required, when a User/FrontEnd Dev should be able to do it.

    I've hit it on News List & Events List, but I imagine it's all lists?

    Further reading:
    http://www.sitefinity.com/developer-network/forums/designing-styling/events-widget---no-upcoming-events-message

    Thanks,
    Stephen
  5. Veronica
    Veronica avatar
    125 posts
    Registered:
    30 Jan 2015
    19 Dec 2012
    Link to this post
    Hi Steve,

    5.3. Release is already live so we'll consider implementing this in one of the future releases.

    Here's the public PITS Issue URL so that you can track the status of the item.

    Kind regards,
    Veronica Milcheva
    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
5 posts, 0 answered