문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top