wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Drag column header, Then all data in this column should be dragged Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Drag column header, Then all data in this column should be dragged" Watch "Drag column header, Then all data in this column should be dragged" New topic
Author

Drag column header, Then all data in this column should be dragged

Ganesh Kannusamy
Ranch Hand

Joined: Sep 15, 2005
Posts: 35
Hi,
I have a reporting solution, and in my ouput(view in Html ) page I need to add new features like, while dragging a column header to top, I want the all the data to be rearranged so that this(particular) column is on top(for all rows), and all other data are same...


When I Drag the column-header back, All the data should be rearranged to the original format.

NOTE: The output is displayed in the form of XML(XSL).

Pls help me solve the problem .

Thanks in advance,
Ganesh


Thanks,
Ganesh
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

NOTE: The output is displayed in the form of XML(XSL).


By this do you mean that you are sending the XML directly to the browser, or are you just using it to generate the HTML page?

Without an HTML page in which to put Javascript, you'd be out of luck.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ganesh Kannusamy
Ranch Hand

Joined: Sep 15, 2005
Posts: 35
Bear Bibeault,
Iam sending the XML directly to the browser, I think the javascript part can be added in the XSL file, but I want to find the javascript for dragging the column header and sorting the table according to that,

Thanks ,
Ganesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drag column header, Then all data in this column should be dragged
 
Similar Threads
Selecting multiple rows.
showing values in table on basis of column header
Restrict the User to Move a Column in a JTable Component
Drag Column header dynamically
How to move a row in JTable?