Solved

How to do the data sorting by dragging to the desired position in asp.net, c# and Jquery?

Posted on 2012-04-04
5
211 Views
Last Modified: 2012-06-27
Hi,

I have list of product items.Product items are coming from the sql server table.

Before dragging, product items display in the below order:
Product One
Product Two
Product Three
Product Four

After dragging, product items display in the following order:
Product One
Product Four
Product Two
Product Three

We need to save the sorting order in the table. How this can be achieved by asp.net, c# and jquery?
0
Comment
Question by:Saroj13
  • 3
  • 2
5 Comments
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 37814159
You will need to be able to save an index value that is associated with a table row.  This may mean that you have to create a table that specifically maintains display order information, or you may be able to add this index value to the actual data row that you want to display.  Do you understand what I mean?  If so, do you know which you would be able to do?
0
 

Author Comment

by:Saroj13
ID: 37814454
You will need to be able to save an index value that is associated with a table row.  This may mean that you have to create a table that specifically maintains display order information,
0
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 37823669
I'm sorry, I only got part of your response, everything after the part where you quote me as saying "...that specifically maintains display order information"  Could you resend that, please? Thanks.
0
 

Author Comment

by:Saroj13
ID: 37824228
Hi,

On Page load, I am going to display product list according to the datetime.
I have sql server table that stores the following information: product names, order.

User can do the sorting by dragging the rows. This information will be saved in the table.
That means, we have to create a table that specifically maintains display order information.

How this can be done in asp.net, c#, jquery?
0
 
LVL 23

Accepted Solution

by:
Christopher Kile earned 500 total points
ID: 37853389
Do you intend that the user's sort selections should be maintained from session to session?  That is, the next time the user opens the site, the sort choices he had before are still active?  OR, do you just want the sort choices made by the user to be active for the current session, disappearing once the user closes the browser window?  It will make a big difference in what you will have to do.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now