Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: Disabling the selection for specific ListItem in sap.m.Table

$
0
0

For those items that are to be disabled, you could add a new style class to each cell control to indicate it's disabled. You could use a formatter function:

 

...
addStyleClass : {     parts : [ 'isRecordLocked' ],    formatter : function(isRecordLocked) {        return isRecordLocked ? "disabledStyle" : "";    }
},
...

where 'isRecordLocked' is the indicator in your data whether your record is locked, and 'disabledStyle' is the custom CSS class which caters for a disabled look of your cell.


If you need to suppress any press events for the locked records, you could do it in the same way.


Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>