Question

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.

The guide from tech-archive.net.

Was it helpful?

Solution

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.

OTHER TIPS

Not sure if you tried this already, but in SP 2007 after you deploy your list adding the OrderedList=TRUE attribute, you still need to modify the view and under sorting you'll see a new option "Allow user to sort items in this view". The "Change Order" button doesn't appear until you set that option to "Yes".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top