Yesterday, 05:12 PM
Hello, after doing some research and testing, the issue with the grid not keeping autowidth,fullwidth, we got it working with this little fix prior to returning to the form:
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA(
'requestAnimationFrame(function(){requestAnimationFrame(function(){' +
'window.dispatchEvent(new Event(''resize''));' +
'requestAnimationFrame(function(){' +
'var Centros=document.querySelectorAll(''.ui-jqgrid-pg-center'');' +
'for(var i=0;i<Centros.length;i++) {' +
'Centros[i].style.width=''235px'';' +
'Centros[i].style.whiteSpace=''nowrap'';' +
'var Celdas=Centros[i].querySelectorAll(''td'');' +
'for(var j=0;j<Celdas.length;j++) Celdas[j].style.whiteSpace=''nowrap'';' +
'}' +
'});' +
'});});'
);
It restored the grid to full width and also the size of pager, that for some reason also stays designer width.
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA(
'requestAnimationFrame(function(){requestAnimationFrame(function(){' +
'window.dispatchEvent(new Event(''resize''));' +
'requestAnimationFrame(function(){' +
'var Centros=document.querySelectorAll(''.ui-jqgrid-pg-center'');' +
'for(var i=0;i<Centros.length;i++) {' +
'Centros[i].style.width=''235px'';' +
'Centros[i].style.whiteSpace=''nowrap'';' +
'var Celdas=Centros[i].querySelectorAll(''td'');' +
'for(var j=0;j<Celdas.length;j++) Celdas[j].style.whiteSpace=''nowrap'';' +
'}' +
'});' +
'});});'
);
It restored the grid to full width and also the size of pager, that for some reason also stays designer width.

