Click the pencil icon on the bottom grid toolbar to edit a row and see different editors.

jqGrid for ASP.NET MVC supports several built-in controls for editing - textbox, checkbox, dropdown. It also supports more complex editors like DatePicker and AutoComplete through external controls. You can declare the external controls on the same page (View) and then set the EditType and EditorControlID properties of the respective column to the type and ID of the respective control.

If you need custom editing control not supported out-of-the-box, you can use the EditType.Custom setting. When you do that, you will also need to set to additional properties - EditTypeCustomCreateElement and EditTypeCustomGetValue - the names of the javascript functions that will format the edit field.

The javascript function creating the field should return an element with the editing controls. The get value function should return the value from these controls.

Please, review to the Javascript at the bottom of the View for details how this can be achieved. The settings for the custom editing are in the Controller.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using Trirand.Web.Mvc;

namespace MVCDemo.Models
{
    public class OrdersJqGridModel
    {
        public JQGrid OrdersGrid { get; set; }

        public OrdersJqGridModel()
        {
            OrdersGrid = new JQGrid
            {
                Columns = new List<JQGridColumn>()
                {
                    new JQGridColumn 
                    {
                        // Always set PrimaryKey for Add,Edit,Delete operations
                        // If not set, the first column will be assumed as primary key
                        DataField = "OrderID",                                        
                        PrimaryKey = true,
                        Editable = false,
                        Width = 50,
                        DataType = typeof(int)
                    },                                    
                    new JQGridColumn 
                    { 
                        DataField = "CustomerID", 
                        Editable = true,
                        Width = 100,
                        DataType = typeof(string),
                        ShowColumnMenu = true,
                    },
                    new JQGridColumn 
                    { 
                        DataField = "OrderDate",                                                         
                        Editable = true,
                        Width = 100, 
                        DataFormatString = "{0:yyyy/MM/dd}",
                        DataType = typeof(DateTime),
                        ShowColumnMenu = true,
                    },
                    new JQGridColumn
                    { 
                        DataField = "Freight", 
                        Editable = true,
                        Width = 75,
                        DataType = typeof(double),
                        ShowColumnMenu = true
                    },
                    new JQGridColumn 
                    { 
                        DataField = "ShipName",
                        Editable =  true,
                        Width = 150,
                        DataType = typeof(string)
                    }
                },
                
                Width = Unit.Pixel(640),
                Height = Unit.Pixel(250),
                
                ToolBarSettings = new ToolBarSettings
                {
                    ShowRefreshButton = true
                }
            };  
        }        
    }
}
@model MVCDemo.Models.OrdersJqGridModel
@using Trirand.Web.Mvc
@using MVCDemo.Models

<!DOCTYPE html>
<html lang="en-us">
<head>
    <meta charset="utf-8">
    <title>jqGrid for ASP.NET MVC - Edit Row Dialog with Custom Edit Types</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>
     <!-- Referece to the javascript client-side code of the jqDatePicker -->
    <script type="text/javascript" src="~/Scripts/trirand/jquery.jqDatePicker.min.js"></script>    
    <!-- Referece to the javascript client-side code of jqAutoComplete  -->
    <script type="text/javascript" src="~/Scripts/trirand/jquery.jqAutoComplete.min.js"></script>  

    <!-- The jQuery UI theme that will be used by the grid. -->
    <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.12.1/themes/redmond/jquery-ui.css" />
    <!-- The jQuery UI theme extension jqGrid needs -->    
    <link rel="stylesheet" type="text/css" href="~/Content/themes/ui.jqgrid.css" />
</head>   

<body>
    <div>
        @Html.Trirand().JQGrid(Model.OrdersGrid, "DeleteDialogGrid")
    </div>
    <!-- this JQDatePicker will be used internally by the grid as DatePicker control for searching and editing -->
    <!-- Datepickers can be used standalone too - when you set the DisplayMode to Standalone (it's the default) -->
    @(Html.Trirand().JQDatePicker(
            new JQDatePicker 
            { 
                DisplayMode = DatePickerDisplayMode.ControlEditor,
                ShowOn = ShowOn.Focus,                    
                DateFormat = "yyyy/MM/dd",
                MinDate = new DateTime(1995,1,1),
                MaxDate = new DateTime(2012,12,21)
            }, "DatePicker")
)
    <div>
    <!-- this JQAutoComplete control will be used internally by the grid as DatePicker control for searching and editing -->
    <!-- AutoCompleters b can be used standalone too - when you set the DisplayMode to Standalone (it's the default) -->
    @(Html.Trirand().JQAutoComplete(
            new JQAutoComplete 
            {
                DisplayMode = AutoCompleteDisplayMode.ControlEditor,
                DataField = "ShipName",                
                DataUrl = Url.Action("AutoComplete","grid"),
                Delay = 500
            }, "AutoComplete")
)
    </div>
    
    <br /><br />
    <div>
          
    </div>
    
    <script type="text/javascript">

        // The javascript executed specified by JQGridColumn.EditTypeCustomCreateElement when EditType = EditType.Custom 
        // The two parameters are the value of the field
        // and the edit options - passed from JQGridColumn.EditFieldAttributes collection
        function createFreightEditElement(value, editOptions) {
            var span = $("<span>");
            var label = $("<span>", { html: "0" });
            var radio = $("<input>", { type: "radio", val: "0", name: "freight", id: "zero", checked: (value != 25 && value != 50 && value != 100) });
            var label1 = $("<span>", { html: "25" });
            var radio1 = $("<input>", { type: "radio", val: "25", name: "freight", id: "fifty", checked: value == 25 });
            var label2 = $("<span>", { html: "50" });
            var radio2 = $("<input>", { type: "radio", val: "50", name: "freight", id: "fifty", checked: value == 50 });
            var label3 = $("<span>", { html: "100" });
            var radio3 = $("<input>", { type: "radio", val: "100", name: "freight", id: "hundred", checked: value == 100 });

            span.append(label).append(radio).append(label1).append(radio1).append(label2).append(radio2).append(label3).append(radio3);

            return span;
        }

        // The javascript executed specified by JQGridColumn.EditTypeCustomGetValue when EditType = EditType.Custom
        // One parameter passed - the custom element created in JQGridColumn.EditTypeCustomCreateElement
        function getFreightElementValue(elem) {
            return $(elem).find("input:radio:checked").val();
        }
    
    </script>
    
</body>
</html>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVCDemo.Models;
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 jqGrid Model.
        public ActionResult EditCustomEditType()
        {
            // Get the model (setup) of the grid defined in the /Models folder.
            var gridModel = new OrdersJqGridModel();
            // This method sets common properties for the grid, different than the default in the Model
            EditCustomEditType_SetUpGrid(gridModel.OrdersGrid);

            // 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. We are doing this in the EditCustomEditType_SetUpGrid method.
        public JsonResult EditCustomEditType_DataRequested()
        {
            // Get both the grid and data models. For data model, make sure IQueryable is implemented (most linq-2-* cases)
            // The data model in our case is an autogenerated linq2sql database based on Northwind.
            var gridModel = new OrdersJqGridModel();
            var dataModel = GetOrders().AsQueryable();

            // This method sets common properties for the grid, different than the default in the Model
            EditCustomEditType_SetUpGrid(gridModel.OrdersGrid);

            // 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(dataModel);
        }

        public JsonResult AutoComplete()
        {
            var northWindModel = new NorthwindDataContext();

            var data = from c in northWindModel.Orders
                       select c;

            JQAutoComplete model = new JQAutoComplete();
            model.DataField = "ShipName";
            return model.DataBind(data);
        }

        // The data gets passed to the controller as strongly typed objects of your data model, Order in our case
        // This functionality is called Model Binders in ASP.NET MVC terms
        public void EditCustomEditType_EditRow(Order editedOrder)
        {
            // Get the grid and database (northwind) models
            var gridModel = new OrdersJqGridModel();
            var northWindModel = new NorthwindDataContext();

            // If we are in "Edit" mode, get the Order from database that matches the edited order
            // Check for "Edit" mode this way, we can also be in "Delete" or "Add" mode as well in this method
            if (gridModel.OrdersGrid.AjaxCallBackMode == AjaxCallBackMode.EditRow)
            {
                // Get the data from and find the Order corresponding to the edited row
                List<Order> gridData = GetOrders();
                Order orderToUpdate = gridData.Single<Order>(o => o.OrderID == editedOrder.OrderID);

                // Update the Order information to match the edited Order data
                // In this demo we do not need to update the database since we are using Session
                // In your case you may need to actually hit the database
                orderToUpdate.OrderDate = editedOrder.OrderDate;
                orderToUpdate.CustomerID = editedOrder.CustomerID;
                orderToUpdate.Freight = editedOrder.Freight;
                orderToUpdate.ShipName = editedOrder.ShipName;

                // This will save the changes into the database. We have commented this since this is just an online demo
                // northWindModel.SubmitChanges();
            }
        }

        public void EditCustomEditType_SetUpGrid(JQGrid ordersGrid)
        {
            ordersGrid.DataUrl = Url.Action("EditCustomEditType_DataRequested");
            ordersGrid.EditUrl = Url.Action("EditCustomEditType_EditRow");

            ordersGrid.ToolBarSettings.ShowEditButton = true;                        
            ordersGrid.EditDialogSettings.CloseAfterEditing = true;

            JQGridColumn freightColumn = ordersGrid.Columns.Find(c => c.DataField == "Freight");
            freightColumn.Width = 100;
            freightColumn.EditType = EditType.Custom;
            freightColumn.EditTypeCustomCreateElement = "createFreightEditElement";
            freightColumn.EditTypeCustomGetValue = "getFreightElementValue";

            JQGridColumn orderDateColumn = ordersGrid.Columns.Find(c => c.DataField == "OrderDate");            
            orderDateColumn.EditType = EditType.DatePicker;
            orderDateColumn.EditorControlID = "DatePicker";            

            JQGridColumn customerIDColumn = ordersGrid.Columns.Find(c => c.DataField == "ShipName");            
            customerIDColumn.EditType = EditType.AutoComplete;
            customerIDColumn.EditorControlID = "AutoComplete";            

            // setup the dropdown values for the CustomerID editing dropdown
            EditCustomEditType_SetUpCustomerIDColumn(ordersGrid);
        }

        private void EditCustomEditType_SetUpCustomerIDColumn(JQGrid ordersGrid)
        {
            // setup the grid search criteria for the columns
            JQGridColumn customersColumn = ordersGrid.Columns.Find(c => c.DataField == "CustomerID");
            customersColumn.Editable = true;
            customersColumn.EditType = EditType.DropDown;

            // Populate the search dropdown only on initial request, in order to optimize performance
            if (ordersGrid.AjaxCallBackMode == AjaxCallBackMode.RequestData)
            {
                var northWindModel = new NorthwindDataContext();
                var editList = from customers in northWindModel.Customers
                               select new SelectListItem
                               {
                                   Text = customers.CustomerID,
                                   Value = customers.CustomerID
                               };

                customersColumn.EditList = editList.ToList<SelectListItem>();
            }
        }


        // This is a helper method fetching the data from Session
        public List<Order> EditCustomEditType_GetOrders()
        {
            List<Order> orders;
            if (Session["Orders"] == null)
            {
                var northWindModel = new NorthwindDataContext();
                orders = (from order in northWindModel.Orders
                          select order).ToList<Order>();
                Session["Orders"] = orders;
            }
            else
            {
                orders = Session["Orders"] as List<Order>;
            }

            return 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" />