Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
Medium Priority
?
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

604 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