Property Boolean pbUseCustomHeaderMenu
Read Access: | Get pbUseCustomHeaderMenu to BooleanVariable |
Write Access: | Set pbUseCustomHeaderMenu to BooleanVariable/Value |
By setting pbUseCustomHeaderMenu to True, the default header menu of the WebList will be disabled and can be overwritten with a custom menu.
The WebContextMenu to replace the menu should use the C_WebUIContextListHead WebUIContext.
Object oDetailGrid is a cWebList Set Server to oOrderDetailDataDictionary Set piOrdering to 1 Set pbFillHeight to True Set piColumnSpan to 10 Set piMinHeight to 200 Set pbUseCustomHeaderMenu to True Object oHeaderMenu is a cWebContextMenu Set peContext to C_WebUIContextListHead Object oColumnList is a cWebMenuColumnList End_Object Object oColumnRestorer is a cWebMenuColumnRestorer End_Object Object oExport is a cWebMenuItem Set psCaption to "Export to CSV" Procedure OnClick ... End_Procedure End_Object End_Object ... End_Object
cWebMenuColumnList and cWebMenuColumnRestorer can be used at will to provide the basic behaviour of the default menu. See their respective documentation for details.