Page view counter

How Do I: The AJAX Toolkit Reorder Control

In this video I will demonstrate the use of the reorder control that ships with the AJAX toolkit. The reorder control lets you present to your users a list of data items that can be reordered as the user prefers.

Presented by Joe Stagner

Duration: 21 minutes, 56 seconds

Date: 21 February 2008

Watch the video   |   Download the video   |   Get VB code  or  C# code

Video downloads: WMV | Zune | iPod | PSP | MPEG-4 | 3GP

Audio downloads: AAC | WMA | MPEG-4 | MPEG-3 | MPEG-2

Comments : 10

Leave a Comment

The_ASP_KID : On May 12, 2008 1:20 PM said:

Anyone know of a how-to when the user reorders the list, that list order is saved in the DB

Wardgp : On June 16, 2008 4:26 PM said:

Given that a postback will reset the order of the list just exactly is the usefulness of this control?  This could be a major source of user frustration.

richileung : On July 22, 2008 10:31 AM said:

I use CommandName="edit" on a link button but it doesn't trigger edit event but an insert instead :( Any ideas?

fxjamy : On July 25, 2008 2:35 PM said:

i noticed tht too, on postback everything is set back as it was.. and is it possible to save the order in db and id we want to delete any of d item ..  ? ??

anybody ???

Super ASP : On July 30, 2008 9:21 PM said:

I noticed that it does reorder the Priority in the DB and so I just added  ORDER BY PRIORITY to the end of my select statment and now it works Great.  Also richileung you can use CommandName="Edit" but be sure you are using it in the <ItemTemplate>. Hope this helps

ashwinee : On July 31, 2008 1:54 AM said:

A very good idea 'Super ASP' :)

But i dint understand what is the use of the following attribute?

ItemInsertLocation="Beginning"

(bcz if v dont do order by in select stmt then items are inserted at the end)

Please clarify

Super ASP : On August 01, 2008 2:58 PM said:

If ItemInsertLocation="Beginning", then a new entry will get inserted at the beginning of the list. The Reorder Control will assign the new record a priority that is smaller then any other in the list.  

So if the items in your list have a priority from 0-4 then it will assign a -1

If ItemInsertLocation is set to “End” the new entry in placed at the end of the list with a Priority greater the any in the list.

So if the items in your list have a priority from 0-4 then it will assign a 5

cv_vikram : On August 07, 2008 3:59 PM said:

Very good tutorial..thanks

pnv.ravikiran : On August 07, 2008 10:31 PM said:

a nice helpful video...

tuhina213 : On November 17, 2008 1:33 PM said:

Can I use Reorder List without using a SQLDataSource or ObjectDataSource? I want to bind the data in my code behind. How do I update the Ranking programatically and in which event do I do this?

Please help.

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities