Page 1 of 1

Hiding Links/ Buttons in groups

Posted: Fri Dec 09, 2016 12:14 am
by Niijimasama

If you have grouped your links as buttons, the following will help you to hide the individual links.
Place the code in the ListOptions_load

//HIDE VIEW BUTTON
$item = $this->ListOptions->Items["view"];
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
$item->Visible = FALSE;
//HIDE VIEW BUTTON
$item = $this->ListOptions->Items["copy"];
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
$item->Visible = FALSE;
//HIDE EDIT BUTTON
$item = $this->ListOptions->Items["edit"];
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
$item->Visible = FALSE;