Click or drag to resize

ControllerStandardDataItemClassIndexSetViewBag Method

Call method FormSetViewBag and puts Session and ViewBag values
NameDescription
Session.ReturnUrlPut value Session Return URL with request URL value (this controller URL, see PathAndQuery and )

This value put always. Want to overwrite then set the value after the method is called.

ViewBag.DataGridViewIf value null then put value from AppModule property DataGridView
ViewBag.ToolbarIf value null then put value from AppModule Index Get Toolbar (see IndexGetToolbar)
ViewBag.ToolbarItemIf value null then put value from AppModule Index Get Toolbar Item (see IndexGetToolbarItem)
ViewBag.HasListHeaderIf value null then put value true
ViewBag.ContentNameIf value null then put value IndexContentDataTablesPartial (with DataTables plug in)
ViewBag.IndexItemClickToDetailsDetails see option IndexItemClickToDetails
ViewBag.IndexItemDeleteViaDialogDetails see option IndexItemDeleteViaDialog

Namespace:  SOWIWeb.Helper
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
protected virtual void IndexSetViewBag()
Examples
This example set ViewBag Title (Attachment of ticket...)
string lControllerTitle = this.DictionaryUI.ToTranslate(SOWIData.Management.DictionaryUIGroup.Controller.ToString(), this.ControllerName.ToString());
ViewBag.Title = lControllerTitle + AppTicketFileContent.Ticket.Name.ToString();
base.IndexSetViewBag();
See Also