cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Table disable entire row based on some status when loading value from ODATA .

prasanstar1986
Participant
0 Kudos

Hello Gurus ,

I am using a SmartTable . SAP UI5 library version is 1.52

My requirement is , I need to disable row selection (entire row including checkbox) of the SmartTable based on some row status when loading value from ODATA (model).

I am writing the code in "dataReceived" event of the smart table .

But not sure which method will disable the entire row .

Regards,

Prasanna

prasanstar1986
Participant
0 Kudos

Hello Gurus ,

Can you please help me with the question raised .

As it seems to be a basic functionality and not sure how to achieve it .

Regards,

Prasanna

Accepted Solutions (0)

Answers (1)

Answers (1)

maheshpalavalli
Active Contributor
0 Kudos

It's not possible directly for sure... You need to manipulate the dom and do it manually. You can check the below answer

https://answers.sap.com/questions/11899881/disable-table-checkbox-based-on-a-field-value.html

A simple solution(Which I don't like :D) would be to use event handler selection change and when the user selects it, again write the code to unselect it by js code based on the condition..

BR,

Mahesh