November Happy Hour will be moved to Thursday December 5th.

radio buttons...combo box...recommendations please?

Vote:
 
My customer wants to be able to sort a newslist by date - either published date, created date etc. He wants the editors to choose this as a radio button or combo in edit mode. Is this possible? Any suggestions? I havent given this one much thought but my first instinct is radio button or combo box. But how? /John
#12221
Feb 22, 2005 15:00
Vote:
 
Hi, John. There's already a built-in property for this purpose, called PropertySortOrder. In the property list when creating a new property on the page type, select "Sortorder for pages". This will give you a drop-down list of the different sort orders provided by EPiServer. The property itself returns an entry in the enum FilterSortOrder, which fits right into the NewsList's "SortOrder" property. In the code you then write Frank :)
#13863
Feb 22, 2005 20:42
Vote:
 
Thanks Frank! I missed that one completely! /John
#13864
Feb 23, 2005 10:03
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.