List Widget

Posted by Community Admin on 05-Aug-2018 16:26

List Widget

All Replies

Posted by Community Admin on 30-Jun-2015 00:00

Is there a way to limit the number of items shown in a widget?? Also to sort by publication date?? because none of the sort expressions that I saw in other forums worked. 

Posted by Community Admin on 30-Jun-2015 00:00

Are you making sure to put the sort expression in "ListItemSortExpression"?  Just tried, PublicationDate DESC or PublicationDate ASC works here

Posted by Community Admin on 30-Jun-2015 00:00

Thanks Steve! Yes, it did work. Wow, I thought I tried it in both -- but I guess I was mistaken. Would you have an idea on how to limit the number of list items that are shown in the widget? Instead of having it be everything on the list, can the widget just show 5? 

Posted by Community Admin on 30-Jun-2015 00:00

Out of the box it doesn't seem like it's possible :/  Kind of goes against the idea of how they see lists I think.  Like a list is a full set of items, where other content types are more unique (does that make sense?)

 Should be easy enough to work around though...create a new class, inherit from "Telerik.Sitefinity.Modules.Lists.Web.UI.ListView" (so you're extending their widget).  Add a couple new public properties for Skip and Take, then in whatever method populates the list data, use those to limit the resultset.

This thread is closed