Click or drag to resize

ControllerStandardDataItemClassIndexGetToolbar Method

Standard toolbar for Index with button: create (default and disabled not CanCreate), refresh, ListHeader (toogle for LiestHeader) and EditDataGridView and Import

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

Return Value

Type: ListToolbarButton

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

Remarks
Advice: standard toolbar buttons don't remove from Toolbar Button list because enumeration Toolbar button index see ToolbarButtonsIndex
ToolbarButtonsIndexicon nameiconaction
Homeglyphicon glyphicon-homesubmit
Createglyphicon glyphicon-plussubmit
Refreshglyphicon glyphicon-refreshsubmit
ListHeaderglyphicon glyphicon-cogdialog see _ListHeaderPartial.cshtml
EditDataGridglyphicon glyphicon-th-listdialog
Importglyphicon glyphicon-importdialog see "_ImportPartial.cshtml sumbit Import IndexOnActionResultPostImport(ListViewConfig, HttpPostedFileBase)
Examples
Toolbar extension. Code for logic Back see IndexOnActionResultPostCase(String)
protected override List<ToolbarButton> IndexGetToolbar()
{
    var lToolbar = base.IndexGetToolbar();
    lToolbar.Add(new SOWIWeb.Helper.ToolbarButton(SOWIWeb.Helper.ButtonType.Submit, pMVCAction: "Back", pIcon: "glyphicon glyphicon-menu-left"));
    return lToolbar;
}
See Also