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