Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing full articles (6178 articles)
Browse article index
↧

Select a Table Row on Checkbox Click

$
0
0

How to select a row on a checkbox click? So the table has a colum for checkboxe, against each of the row. When the use checks the box, the entire row should be selected, and added to the Table's Selection Indices.

 

table.jpg

Here is a sample of what I am trying. So clicking on the checkbox, should select and vice-versa. This is a multi selection table, multi rows will be selected.

 

This is what I did on the change event of the checkbox

 

change: function(oEvent) {
var row = oEvent.getSource().getParent();
table.setSelectedIndex(row.getIndex());
}

But it does not set the row highlighted.

 

Any inputs are much appreciated.

 

Thanks

Sandip

↧

Viewing full articles (6178 articles)
Browse article index

Latest Images

Trending Articles



Latest Images