I want to completely hide it from the main grid.
See image for details.
Thanks in advance.
The column to be hidden is named "subgrid" . To hide it, you can use
"subgrid"
$("#grid").jqGrid("hideCol", "subgrid");
If you need to implement an interface for opening or closing a subgrid, you can directly call the ondblClickRow: function (rowid) { $(this).jqGrid("toggleSubGridRow", rowid); } method ondblClickRow: function (rowid) { $(this).jqGrid("toggleSubGridRow", rowid); } ondblClickRow: function (rowid) { $(this).jqGrid("toggleSubGridRow", rowid); }
ondblClickRow: function (rowid) { $(this).jqGrid("toggleSubGridRow", rowid); }
See relevant demo:
UPDATED . If you want to additionally hide the icon from the first column of the subtitle, you can use the option
subGridOptions: { openicon: "ui-helper-hidden" }
and add extra CSS style
.subgrid-cell .ui-helper-hidden { display: none}
See:
UPDATED 2 . To hide the column with the icon in the subnet line, you can simply use
.subgrid-cell { display: none}
Source: https://habr.com/ru/post/1305437/More articles:Method attribute access from Castle Windsor interceptor - c #Increase timeout for one web service - c #Get a list of indexes in an Access database - databasehow to check mysql login - mysqlTo split large text into columns - javascriptWhere to place resource mapping in the Liferay-Portlet? - permissionsThe jqGrid hidden plus / minus / open icon column makes the subgrade less wide since the main row is widthHow can I imagine a date and time collector in Asp.Net MVC - asp.net-mvcphp object: get attribute value by computed name - objectCan the cookie expire when some time has passed or the browser is closed? - httpAll Articles