Skip to Content
0

Dragging and Dropping of table rows within table using sap ui5

Nov 06, 2017 at 11:18 AM

16

avatar image
Former Member

Hi All,

I am using sap.m.table control . I am able to drag and drop of rows within table DoM Level, once dropping of rows is done corresponding model is not updating.

below is the my code.

onInit:function(){

var oSortableTable=this.getView().byId("idRulesTable");

var oTableId=oSortableTable.getId();

var oTableUid=oTableId+"-tblBody";

oSortableTable.onAfterRendering=function(){

if(sap.m.Table.prototype.onAfterRendering){

sap.m.Table.prototype.onAfterRendering.apply(this);

}

$("#"+oTableUid).addClass('ui-sortable');

$("#"+oTableUid).sortable({

connectWith:".ui-sortable"

}).disableSelection();

}}

can any one help , how v can update the json model while re-ordering the rows within table

Regards,

manju

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers