How do you get rid of the "Delete All Rows" button in a Labkey Web Part?
Jon (LabKey DevOps) responded:
2015-07-07 11:24
Hi Cheryl,
There are two ways to get rid of the buttons. You can either:
A.) Edit the XML Metadata on the table/query via the Schema Browser and set the includeStandardButtons option to "false".
or
B.) You can use Javascript that renders the Query Web Part to set the includeStandardButtons to "false".
The first option removes all the standard buttons whenever that web part renders. The second option just removes it off of the one instance.
Now, if you remove the standard buttons, you will have to then insert your own buttons if you wish for some of the functionality to still be there, like having views or an export.
For more information and code samples, please review the following information below:
Also keep note that depending on the permissions of the individual who is looking at your web part that renders, they may not get a delete button, so hiding the Delete All Rows button would only prevent anyone that would normally get access to that button from seeing it any more.