voyent
Ace Datatable disable row selection based on row data  XML
Forum Index -> Components
Author Message
Chennakeswarao

Joined: 05/Nov/2016 19:51:54
Messages: 2
Offline


I want to disable row selection on particular based on data on row. We acheived this using custom rowstyleclass like below.

Code:
 <ace:datatable value="#{bean.listofstudetts}" var="student" rowstyleclass=#{student.id eq 123?inactiverow:' '}></ace:datatable>
 


In css file
Code:
 .inactiverow{
 pointer-events:none;
 background-color:gray;
 }
 



But if user using old browser. It is triggering selection event. because pointer-events is not available before HTML5.

Instead can i use .ui-unselectable used by ace datatable. is supported when user is not HTML5 supported browser.


Thanks
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team