EmptyDataTemplate
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
>
Hi Steve,
I agree.
I have logged this for improvement. Thanks, as always!
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...
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:
www.sitefinity.com/.../events-widget---no-upcoming-events-message
Thanks,
Stephen
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