Click or drag to resize

ControllerStandardDataItemClassIndexGetToolbarItem Method

Standard toolbar for data item (Edit, Details, Delete). Button Delete controlled by option IndexItemDeleteViaDialog (view or dialog)

Namespace:  SOWIWeb.Helper
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
protected virtual List<ToolbarButton> IndexGetToolbarItem()

Return Value

Type: ListToolbarButton

[Missing <returns> documentation for "M:SOWIWeb.Helper.ControllerStandard`1.IndexGetToolbarItem"]

Remarks
Advice: standard toolbar buttons don't remove from Toolbar Item Button list because enumeration Toolbar button index see ToolbarButtonsIndex
Examples
The example added toolbar buttons.
protected override List<SOWIWeb.Helper.ToolbarButton> IndexGetToolbarItem()
{
    var lToolbarItem = base.IndexGetToolbarItem();
    lToolbarItem.Add(new SOWIWeb.Helper.ToolbarButton(SOWIWeb.Helper.ButtonType.Action)
    {
        MVCController = "TicketEmail",
        MVCAction = "Index",
        Icon = "glyphicon glyphicon-envelope",
        TooltipText = "Ticket Emails",
        Disabled = !SOWIApp.Administrator.ClientModuleConfig.IsActive(this.AppTicket.ClientID, "TicketEmail", SOWIData.Management.ModuleTypes.Option)
    });
    lToolbarItem.Add(new SOWIWeb.Helper.ToolbarButton(SOWIWeb.Helper.ButtonType.Action)
    {
        MVCController = "TicketReport",
        MVCAction = "Index",
        Icon = "glyphicon glyphicon-bishop",
        TooltipText = "Ticket Reports",
        Disabled = !SOWIApp.Administrator.ClientModuleConfig.IsActive(this.AppTicket.ClientID, "TicketReport", SOWIData.Management.ModuleTypes.Option)
    });
    lToolbarItem.Add(new SOWIWeb.Helper.ToolbarButton(SOWIWeb.Helper.ButtonType.Action)
    {
        MVCController = "TicketFileContent",
        MVCAction = "Index",
        Icon = "glyphicon glyphicon-file",
        TooltipText = "Ticket Attachment",
        Disabled = !SOWIApp.Administrator.ClientModuleConfig.IsActive(this.AppTicket.ClientID, "TicketFileContent", SOWIData.Management.ModuleTypes.Option)
    });
    return lToolbarItem;
}
See Also