Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to delete all checked row of JqGrid MVC Helper
    text
    copied!<p>I am using MVC JqGrid Helper,Multiselect Column.and in the UI it appearing fine</p> <p>I have Used .SetMultiSelect(true) and .SetMultiBoxOnly(false) method of JqGrid MVC Helper DLL. <strong>View is as follow:</strong></p> <pre><code> @(Html.Grid("AllCompany").SetCaption("Organizations") .AddColumn(new Column("&lt;input type=checkbox editable=true&gt;").SetSortable(false).SetCustomFormatter("mvcJqGrid.demo.buttonize").SetWidth(10)) .AddColumn(new Column("OrganizationId").SetWidth(0).SetSearch(false).SetHidden(true)) .AddColumn(new Column("Name").SetWidth(10).SetSearch(true)) .AddColumn(new Column("Email").SetWidth(10).SetSearch(true)) .AddColumn(new Column("Address").SetWidth(10).SetSearch(true)) .AddColumn(new Column("Phone").SetWidth(10).SetSearch(true)) .AddColumn(new Column("Website").SetWidth(10).SetSearch(true)) .AddColumn(new Column("Action").SetSearch(false).SetCustomFormatter("mvcJqGrid.demo.buttonize").SetWidth(5)) .SetUrl(Url.Action("Organization_List","Organization")) .SetRowNum(10) .SetAutoWidth(true) .SetRowList(new[] { 10, 15, 20, 50 }) .SetViewRecords(true) .SetSearchToggleButton(true) .SetSearchClearButton(true) .SetPager("pager").SetWidth(50) .SetSearchToolbar(true) .SetMultiSelect(true) .SetMultiBoxOnly(false) ) </code></pre> <p><strong>and the Controller code is:</strong></p> <pre><code>public JsonResult Organization_List(GridSettings gridSettings) { Log.LogInfo(string.Format("Getting all the list of CompanyTeamplate")); List&lt;tbl_organizations&gt; OrgList = Organization_Services.Get_All_Organizations(); List&lt;tbl_organizations&gt; pagedRecord = OrganizationService.Organization_List(gridSettings, OrgList); var templateList = pagedRecord.ToList(); int totalTemplates = OrgList.Count; var jsonData = new { total = totalTemplates / gridSettings.PageSize + 1, page = gridSettings.PageIndex, records = totalTemplates, rows = ( from tl in templateList select new { Id = tl.OrganizationId, cell = new[] { tl.OrganizationId.ToString(), tl.Name.ToString(), tl.Email.ToString(), tl.Address, (tl.Phone!=null?tl.Phone:string.Empty).ToString(), (tl.Website!=null?tl.Website:string.Empty).ToString() } }).ToArray() }; Log.LogInfo(string.Format("Got all the list of CompanyTeamplate")); return Json(jsonData, JsonRequestBehavior.AllowGet); } </code></pre> <p>all the checkbox are displaying in first Column.and data fetching from JSON Method .</p> <p><strong>Now i want to perform delete action of all selected checked row .<code>enter code here</code> I have no idea how to do it in jqGrid helper MVC.</strong> Any Help will Appreciated. Thank You.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload