How to dropdown master-detail button only?
I found this,
$this->ListOptions->UseButtonGroup = TRUE;
$this->ListOptions->UseDropDownButton = TRUE;
how to separate the actions and details button ?
please help me
thanks,
How to dropdown master-detail button only?
I found this,
$this->ListOptions->UseButtonGroup = TRUE;
$this->ListOptions->UseDropDownButton = TRUE;
how to separate the actions and details button ?
please help me
thanks,
If you mean the "master/detail add" button next to "action" button, it is:
$this->OtherOptions["detail"] for master/detail add
$this->OtherOptions["action"] for action
You can put your code in Page_Render server event to manipulate the item's ShowInDropDown attribute like:
$item->ShowInDropDown = FALSE;
See Server event and CLient script in help file.
I try this :
function Page_Render() {
//echo "Page Render";
$this->ListOptions->UseButtonGroup = TRUE;
if($this->OtherOptions["detail"]){
$this->ListOptions->UseDropDownButton = TRUE;
} else if($this->OtherOptions["action"]) {
$this->ListOptions->UseDropDownButton = FALSE;
}
}
results of above code : all button into dropdown
And then i try this,
function ListOptions_Load() {
$this->ListOptions->UseButtonGroup = TRUE;
if($this->ListOptions->Item["details"]){
$this->ListOptions->UseDropDownButton = TRUE;
} else {
$this->ListOptions->UseDropDownButton = FALSE;
}
}
Notice: Undefined property: cListOptions::$Item in...