Is it possible to reorder vertically a single column within a grid? I don't want to move the whole row, just one column in it. I am rewriting a page written with AngularJS and I don't want to try and replicate it, even if it will work. The cells in the first column in the grid needs to move freely up and down the rows.
here's the code I need to replace:
$(".table-active").tableDnD({
onDragClass: "myDragClass",
onDrop: function (table, row) {
var count = 1;
$("#loadingIcon").show();
try {
$.ajax({
type: "POST",
url: "../Ajax.ashx/UpdateVirtualRosterRank",
cache: false,
dataType: "json",
data: ({ stringOfIds: $.tableDnD.serialize(), changeId: row.id }),
success: function (data) {
$.each($("#" + row.id).parent().children(), function (i, v) {
$("#" + v.id).children().first().html(count);
count++;
});
$("#loadingIcon").hide();
}
});
} catch (e) {
alert(e.message);
}
},