A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn 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" >