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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

840 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