I have this JQGRID:
$(document).ready(function () {
$.jgrid.defaults.width = 780;
$.jgrid.defaults.responsive = true;
$.jgrid.defaults.styleUI = 'Bootstrap';
$.jgrid.styleUI.Bootstrap.base.rowTable = "table table-bordered table-striped";
$("#gridUsuario").jqGrid({
url: '@Url.Action("GetUsers", "Account", new { area = "Security" })',
mtype: "GET",
datatype: "json",
colModel: [
{ label: 'ID', name: 'ID', key: true, width: 70 },
{ label: 'Vigente', name: 'UsuarioVigente', hidden: true },
{ label: 'Nombre Completo', name: 'FullName', width: 200, edittype: 'text', editable: true, editrules: { required: true }, editoptions: { size: 50, maxlength: 100 }, formoptions: { elmprefix: '(*)' } },
{ label: 'Login', name: 'UserName', width: 120, edittype: 'text', editable: true, editrules: { required: true }, editoptions: { size: 30, maxlength: 50 }, formoptions: { elmprefix: '(*)' } },
{ label: 'Password', name: 'Password', width: 100, edittype: 'password', editable: true, hidden: true, editrules: { required: true, edithidden: true }, editoptions: { size: 30, maxlength: 50 }, formoptions: { elmprefix: '(*)' } },
{ label: 'E-mail', name: 'Email', width: 240, edittype: 'text', editable: true, editrules: { required: true, email: true }, editoptions: { size: 50, maxlength: 100 }, formoptions: { elmprefix: '(*)' } },
{ label: 'Teléfono', name: 'PhoneNumber', width: 120, edittype: 'text', editable: true, editoptions: { size: 30, maxlength: 50 } },
{ label: 'Ciudad', name: 'Hometown', width: 150, edittype: 'text', editable: true, editoptions: { size: 30, maxlength: 50 } },
{ label: 'Fecha Registro', name: 'UsuarioCreadoEn', width: 120, formatter: "date", formatoptions: { srcformat: "ISO8601Long", newformat: "d/m/Y H:i" } }
],
viewrecords: true,
shrinkToFit: false,
autowidth: true,
multiselect: true,
rowNum: 20,
rowList: [10, 20, 30],
gridview: true,
pager: "#gridPager",
sortname: "FullName",
sortorder: "asc",
beforeRequest: function () {
var $PANEL = $('#pnlGrid'),
$FOOTER = $('footer');
// 125 = otros altos, como paddings y la fila de paginación
$("#gridUsuario").jqGrid('setGridHeight', $FOOTER.offset().top - $PANEL.offset().top - 125);
},
rowattr: function (rd) {
if (!rd.UsuarioVigente) {
return { "class": "no-vigente" };
}
}
});
All works perfect but responsive behaviour.
At bottom toolbar, I have several actions created with navButtonAdd method.
When I test responsiveness, the action icons at bottom toolbar are replaced by a button with "Actions..." label. When clicked, all action items pop up. That is perfect, however, the paging does not behave the same, causing paging icons to appear over the "Actions..." button.
Is this a bug in JQGRID? is there a way to solve this?