Exactly in subject
How can I hide this button controls on view page ?
Thanks
Max
Simply put the following code under “Client Scripts” → “Table-Specific” → “View Page” → “Startup Script”:$(document).ready(function() {
$(‘.ewAdd’).hide();
$(‘.ewCopy’).hide();
$(‘.ewEdit’).hide();
$(‘.ewDelete’).hide();
});
@mobhar
THanks.
Easy and clean solution.
It is possible to do the same thing using server events ?
Max
Sure, and here we go:$this->OtherOptions[“action”]->Items[“add”]->Body = “”;
$this->OtherOptions[“action”]->Items[“edit”]->Body = “”;
$this->OtherOptions[“action”]->Items[“delete”]->Body = “”;put the code in “Page_Render” server event that belongs to the view page.
sorry to jump in this thread.
how to hide Edit, Add, Delete buttons on view page, it seems not working on version 2022.x.x
how about hide edit, add , delete button on list page on version 2022.x.xany refences for this manual?
best regards
You may read TablePermission_Loaded in server event.