cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Table Disable Row selection based on Status(Not Sap.m.Table)

0 Kudos

Hi,

I have developed a custom Fiori application, this application uses sap.ui.Table control to show data and the selection mode is multi select,

I want to disable row selection for selected rows based on status field... any idea how we can achieve...?

Note: It's not a sap.m.Table control ,Its sap.ui.Table Control..

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi, do the request be resolve??

Former Member
0 Kudos

Hi Murali,

Please check this http://jsbin.com/tehupo/edit?html,js,output.

If it is all rows -sap.ui.table.SelectionMode.NoneNo rows can be selected - Did you try this.

Also , using formatter , we can control the selection of the rows.

Regards

Madhu

Sharathmg
Active Contributor
0 Kudos

use property or expression binding.

Bind the value of status to the tables visibility.

Check the link : https://help.sap.com/saphelp_nw74/helpdata/en/da/f6852a04b44d118963968a1239d2c0/content.htm

Regards,

Sharath

0 Kudos

Thanks for your reply Sharath M G,

But I don't want hide the column. See the below link, how it will disable rows in sap.m.Table control

JS Bin - Collaborative JavaScript Debugging.

I want exact functionality using sap.ui.table control.

Sharathmg
Active Contributor
0 Kudos

set the property, enabled with the same boolean property.

As you see in the sample code, the model which is bound to the table, is controlled by setting the enabled property based on status value.

Use either the same or directly bind the expression to the property, editable of the row to status with the value "Disconnected".

Regards,

Sharath