show Add button show Delete button show Edit button
show Refresh button show Search button show Details button

Select toolbar postion:

You can control a large number of toolbar related options using the ToolBarSettings property collection. In this example we take advantage of ToolBarSettings.ShowAddButton, ShowDeleteButton, etc to toggle which buttons we want to see on the screen.

You can also control the position of the toolbar by setting the ToolBarSettings.ToolBarPosition enumeration.
@model MVCDemo.Models.OrdersJqGridModel
@using Trirand.Web.Mvc
@using MVCDemo.Models

<!DOCTYPE html>
<html lang="en-us">
    <meta charset="utf-8">
    <title>jqGrid for ASP.NET MVC - ToolBar Settings</title>    
    <!-- jQuery runtime minified -->
    <script src="~/Scripts/jquery-3.2.1.min.js" type="text/javascript"></script>
    <!-- The jqGrid localization file we need, English in this case -->
    <script type="text/javascript" src="~/Scripts/trirand/i18n/grid.locale-en.js"></script>
    <!-- The jqGrid client-side javascript -->
    <script type="text/javascript" src="~/Scripts/trirand/jquery.jqGrid.min.js"></script>

    <!-- The jQuery UI theme that will be used by the grid. -->
    <link rel="stylesheet" type="text/css" href="" />
    <!-- The jQuery UI theme extension jqGrid needs -->    
    <link rel="stylesheet" type="text/css" href="~/Content/themes/ui.jqgrid.css" /> 
    @{ Html.BeginForm("appearancetoolbarsettings", "grid"); }        
            @Html.CheckBox("add", (bool) ViewData["addData"], new { onchange = "this.form.submit();" }) show Add button
            @Html.CheckBox("del", (bool) ViewData["delData"], new { onchange = "this.form.submit();" }) show Delete button
            @Html.CheckBox("edit", (bool) ViewData["editData"], new { onchange = "this.form.submit();" }) show Edit button <br />
            @Html.CheckBox("refresh", (bool) ViewData["refreshData"], new { onchange = "this.form.submit();" }) show Refresh button 
            @Html.CheckBox("search", (bool) ViewData["searchData"], new { onchange = "this.form.submit();" }) show Search button 
            @Html.CheckBox("details", (bool) ViewData["detailsData"], new { onchange = "this.form.submit();" }) show Details button <br />
            <br />
            Select toolbar postion:
            @Html.DropDownList("position", ViewData["ToolBarOptions"] as SelectList, new { onchange="this.form.submit();" })                   
            <br />
            <br />
    @{ Html.EndForm(); }

        @Html.Trirand().JQGrid(Model.OrdersGrid, "OrdersGrid")
    <br /><br />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using MVCDemo.Models;
using System.Web.UI.WebControls;
using Trirand.Web.Mvc;

namespace MVCDemo.Controllers.Grid
    public partial class GridController : Controller
        // This is the default action for the View. Use it to setup your grid Model.
        public ActionResult AppearanceToolBarSettings(  bool? add, bool? edit, bool? del, bool? refresh, 
                                                        bool? search, bool? details, string position)
            // Get the model (setup) of the grid defined in the /Models folder.
            var gridModel = new OrdersJqGridModel();
            var grid = gridModel.OrdersGrid;

            // Customize/change some of the default settings for this model
            // ID is a mandatory field. Must by unique if you have several grids on one page.
            grid.ID = "OrdersGrid";
            // Setting the DataUrl to an action (method) in the controller is required.
            // This action will return the data needed by the grid
            grid.DataUrl = Url.Action("AppearanceToolBarSettings_DataRequested");            

            position = position ?? "Top";
            ViewData["addData"] = add ?? true;
            ViewData["delData"] = del ?? true;
            ViewData["editData"] = edit ?? true;
            ViewData["refreshData"] = refresh ?? true;
            ViewData["searchData"] = search ?? true;
            ViewData["detailsData"] = details ?? true;

            grid.ToolBarSettings.ShowAddButton = (add.HasValue && (!add.Value)) ? false : true;
            grid.ToolBarSettings.ShowDeleteButton = (del.HasValue && (!del.Value)) ? false : true;
            grid.ToolBarSettings.ShowEditButton = (edit.HasValue && (!edit.Value)) ? false : true;
            grid.ToolBarSettings.ShowRefreshButton = (refresh.HasValue && (!refresh.Value)) ? false : true;
            grid.ToolBarSettings.ShowSearchButton = (search.HasValue && (!search.Value)) ? false : true;
            grid.ToolBarSettings.ShowViewRowDetailsButton = (details.HasValue && (!details.Value)) ? false : true;
            switch (position)
                case "TopAndBottom": grid.ToolBarSettings.ToolBarPosition = ToolBarPosition.TopAndBottom; break;
                case "Top": grid.ToolBarSettings.ToolBarPosition = ToolBarPosition.Top; break;
                case "Bottom": grid.ToolBarSettings.ToolBarPosition = ToolBarPosition.Bottom; break;
                case "Hidden": grid.ToolBarSettings.ToolBarPosition = ToolBarPosition.Hidden; break;

            List<SelectListItem> positions = new List<SelectListItem>();
            positions.Add(new SelectListItem { Text = "Top", Value = "Top" });
            positions.Add(new SelectListItem { Text = "Bottom", Value = "Bottom" });
            positions.Add(new SelectListItem { Text = "TopAndBottom", Value = "TopAndBottom" });
            positions.Add(new SelectListItem { Text = "Hidden", Value = "Hidden" });
            ViewData["ToolBarOptions"] = new SelectList(positions, "Value", "Text", position);
            // Pass the custmomized grid model to the View
            return View(gridModel);

        // This method is called when the grid requests data. You can choose any method to call
        // by setting the JQGrid.DataUrl property
        public JsonResult AppearanceToolBarSettings_DataRequested()
            // Get both the grid Model and the data Model
            // The data model in our case is an autogenerated linq2sql database based on Northwind.
            var gridModel = new OrdersJqGridModel();
            var northWindModel = new NorthwindDataContext();

            // return the result of the DataBind method, passing the datasource as a parameter
            // jqGrid for ASP.NET MVC automatically takes care of paging, sorting, filtering/searching, etc
            return gridModel.OrdersGrid.DataBind(northWindModel.Orders);
Switch theme:

Theming is based on the very popular jQuery ThemeRoller standard. This is the same theming mechanism used by jQuery UI and is now a de-facto standard for jQuery based components. The benefits of using ThemeRoller are huge. We can offer a big set of ready to use themes created by professional designers, including Windows-like themes (Redmond), Apple-like theme (Cupertino), etc. In addition to that any jQuery UI controls on the same page will pick the same theme.

Last, but not least, you can always roll your own ThemeRoller theme, using the superb Theme Editor

To use a theme, simply reference 2 Css files in your Html <head> section - the ThemeRoller theme you wish to use, and the jqGrid own ThemeRoller Css file. For example (Redmond theme):

<link rel="stylesheet" type="text/css" media="screen" href="/themes/redmond/jquery-ui-1.8.2.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/themes/ui.jqgrid.css" />