Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
You could try to sort your newslists like this instead and see if it works
NewsListCtrl.SortBy = "ReviewDate";
I have a news list and I want to sort it by a data property, If i put the Sort by in the ascx file it works (see below) but I want to do the sorting via the code behind; however when i try NewsListCtrl.SortBy["MyDateControl"] it agrues saying its not an int? So why does it not complain when the ascx file has the same thing?
<EPiServer:NewsList PageLinkProperty="Review" ID="NewsListCtrl" runat="server" SortBy="ReviewDate" >