Hello i am trying to figured out how hide the edit button on list page for certain records if a condition is true , the code i am using on Page Render event is:
if ($this->approved->CurrentValue == 1) {
$this->OtherOptions["action"]->Items["edit"]->Visible = false;
}
but it is not working. any idea if there any solution for this?
thanks