You need to sign in to do that
Don't have an account?
Boman@imt
Cannot hide ACTION_COLOMN in EnhancedList
I've overridden the tab for a custom object and am trying to use jquery to hide() the ACTION_COLUMN since I do not want those operations available to CP users, but it's not working! Easily done when I use the traditional apex:listViews.
<script> var j$ = jQuery.noConflict(); j$(document).ready(function() { console.log("Trying to hide!!!") j$(".x-grid3-hd-btn").hide(); j$(".x-grid3-hd-inner").hide(); j$(".x-grid3-hd-ACTION_COLUMN").hide(); }); </script>
Any suggestions?
Is it a timing issue? The jquery will fire as soon as the document is ready, so if the enhanced list is also using javascript to set itself up the elements might not be there when you execute.
I'd add some debug to output the results of the selectors.
Eventually went with:
<br>.x-grid3-hd-ACTION_COLUMN {display:none; visibility:hidden}<br>.x-grid3-td-ACTION_COLUMN {display:none; visibility:hidden}<br>
and it works.
Thanks!