Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Using JQuery Sortable on an Interactive Grid Apex 5.1.2

Derek SolisSep 14 2017 — edited Sep 15 2017

Hello I am using the jquery sortable functionality on an interactive grid. I have the sorting working. I have the grid body tagged with ui-sortable and the tr elements tagged with 'data-id = #ID#' so that way I am able to grab all of the ID's. But when I drag and drop a row to a new position it does not show that way when I am grabbing the array using this: $("tbody.ui-sortable").sortable('toArray', {attribute: 'data-id'}). It's grabbing the sequence as if I had not moved a row to a new position. I can open up the consoleTools on the web browser and view the elements and see that they are in fact in the new order that I had dragged the rows into, but this: $("tbody.ui-sortable").sortable('toArray', {attribute: 'data-id'}) is grabbing some kind of stored/cached values. If I add anything to refresh the page or session then it just reverts the changes I made to the rows back to their original positions. Any one have any advice on a way to make this work?

Thanks,

Derek

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2017
Added on Sep 14 2017
2 comments
524 views