How do I make the "change order" button appear in SharePoint 2010?
I have followed a guide that allowed me to add OrderedList="TRUE"
to my list template. This makes it possible to select "Allow users to order items in this view" for my view. But the change order button is still missing. Any idears on what I am missing?
I am using SharePoint 2010 and the guide is from 2006, so that might explain why it doesn't just work.
I created a little console app to help me set the OrderedList attribute.
class Program {
public static SPSite GetAdminSPSite() {
SPSite spsite = null;
SPSecurity.RunWithElevatedPrivileges(delegate() {
spsite = new SPSite("http://sharepointdev");
});
return spsite;
}
static void Main(string[] args) {
if (args.Length != 2) {
Console.WriteLine("Missing sitename parameter and the list name.");
return;
}
string sitename = args[0];
string listname = args[1];
using (SPSite site = GetAdminSPSite()) {
using (SPWeb web = site.OpenWeb("ClientSites/" + sitename)) {
SPList list = web.Lists[listname];
list.Ordered = true;
list.Update();
}
}
}
}
Once that is run then you need to modify the view as @Jeff Smith says.