How to create List with Item Order enabled

In order to enable feature in a list to change item order, it will be better
to create your list definition go to schema.xml and specify OrderedList=”TRUE”

and in the same schema.xml file go to view and change Order by CAML like..

<View BaseViewID=”1″ OrderedView=”TRUE”
…………………..
…………………..

<Query>
<OrderBy>
<FieldRef Name=”Order”></FieldRef>
</OrderBy>
</Query>

………..

Now add some data into the list created based on above list definition
and then go to http://yoursitename/_layouts/Reorder.aspx?List=listGuid

This is manual process but can be added into ribbon button by adding
custom action for the list definition.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s