How can I use the same jQuery Libs to attach to a table? It works well with the list box but I can't see in the code how that API is being used.(See code below for a very simple table being created). The SAPUI5 table already had the drag and drop feature for columns.
//create layout
var oLayout = new sap.ui.commons.layout.MatrixLayout({width:"100%"});
//insert oData Model here
var oModel = new sap.ui.model.odata.ODataModel("insert xsodata here", true); var arrayHeaders = new Array(); var oControl; oTable = new sap.ui.table.Table("test",{tableId: "tableID",
visibleRowCount: 10}); oTable.setTitle("Table"); //Table Column Definitions var oMeta = oModel.getServiceMetadata(); var oControl; for ( var i = 0; i < oMeta.dataServices.schema[0].entityType[0].property.length; i++) { var property = oMeta.dataServices.schema[0].entityType[0].property[i]; oControl = new sap.ui.commons.TextField().bindProperty("value",property.name); oTable.addColumn( new sap.ui.table.Column({label:new sap.ui.commons.Label({text: property.name}), template: oControl, sortProperty: property.name, filterProperty: property.name, filterOperator: sap.ui.model.FilterOperator.EQ, flexible: true, width: "125px" })); } oTable.setModel(oModel); //Create Sorter and Bind to the Batch Run Entity
var sort1 = new sap.ui.model.Sorter("ROW_ID", true);
oTable.bindRows({
path: "/Table"
});
// return oTable;
oLayout.createRow(oTable);
return oLayout.createRow(oTable);