¿Cómo restablecer las filas seleccionadas y seleccionar todas las filas en el botón externo hacer clic? Estoy tratando de resetSelection() pero no funciona ...¿Cómo invocar la selección de reinicio y seleccionar todo en jqGrid?
jQuery("selectAll").click(function(){
jQuery('.cbox').trigger('click');
});
jQuery("clear").click(function(){
var grid = $("#list10");
grid.resetSelection();
$('#cb_my_grid').click();
var ids = grid.getDataIDs();
for (var i=0, il=ids.length; i < il; i++)
grid.setSelection(ids[i], false);
});
que usted debe fijar el ejemplo de código que no funciona. . – Oleg
jQuery ("selectAll") haga clic en (function() {. \t \t \t jQuery ('cbox ') del gatillo (' clic'); \t \t \t}); \t \t jQuery ("claro") haga clic en (function() { \t \t \t var rejilla = $ ("# list10");. \t \t \t grid.resetSelection(); \t \t \t $ ('# . cb_my_grid ') click(); \t \t \t var ids = grid.getDataIDs(); \t \t \t for (var i = 0, il = ids.length; i
Paul
puede ser este enlace de ayuda https://cbabhusal.wordpress.com/2014/09/15/jqgrid-reset-row-selction-when-clicked-outside-or-lost-focus-or-onblur/ – illusionist