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
212 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

25 Experts available now in Live!

Get 1:1 Help Now