on 04-13-2015 10:29 AM
Hello Experts,
my sap.ui.table.Table's first row is the total of all the other rows.
I want that to be fixed and not affected by any sort/filter.
var oTableNASummary = new sap.ui.table.Table("idTableNASummary",{
columnHeaderHeight: 40,
selectionMode: sap.ui.table.SelectionMode.None,
width:"100%",
visibleRowCount: 100,
//height: "35px",
}).addStyleClass("abcstyle");
Is it possible?
Thanks,
Seyed Ismail MAC
MAke 1st row has your table header and 2nd row as your total,
in your table declaration make fixedRowCount to 1.
var oTable = new sap.ui.table.Table({
title: "Table Example",
visibleRowCount: 7,
firstVisibleRow: 3,
fixedRowCount:1,
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...which makes total sense, since your first row is just table data, and not a strict total of the data (i.e. it is not handled any different than the other table data.
You may want to try the AnalyticalTable instead which has a dedicated 'sumOnTop' property
Hi folks im facing an issue
in sap ui table
i have to select a max number of rows : that is 19 rows ,
after that is done i have to disable select of any further rows ,
but along with that i have to enable deselect the already selected rows ,
which is not happening as of now
here is my code
var oTable = new sap.ui.table.Table("tableid", {
selectionMode : sap.ui.table.SelectionMode.MultiToggle,
// selectionBehavior: sap.ui.table.SelectionBehavior.RowSelector,
setFixedRowCount:18,
//navigationMode : sap.ui.table.NavigationMode.ScrollBar,
visibleRowCount : 60,
rowSelectionChange: function(e) {
////////////////////////////akshay
var indices = e.getParameter('rowIndices');
for (var i = 0; i < indices.length; i++) {
var idx = indices[i];
if (oTable.isIndexSelected(idx)) {
/////////////////////////for current and previous row
var cxt = oTable.getContextByIndex(idx);
var arr = [];
arr = oTable.getSelectedIndices();
var selectedrowcount = arr.length;
var ra = parseInt(selectedrowcount);
if((ra > 19) )
{
// overlay_test.open();
oTable.mProperties.selectionMode = "None"
}
////////////////////////for row count and popup
}
}
/////////////////////////////akshay
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syed,
I think you can use setFixedRowCount API,if you are not looking for filtering and sorting option.
If you can do some customization, then setFirstVisibleRow might be helpfull.
Hope this helps.
Thanks.
Sarath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.