on 07-05-2015 3:44 AM
Hi experts
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
}
}
Hi Akshey
Can you spend some more time to construct your questions again? At least to me, I cannot understand what your questions are.
What need to be selected and what need to be deselected?
Thanks
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.