Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWjQDBGrid erratic behaviour
#9
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.
Reply


Messages In This Thread
RE: TIWjQDBGrid erratic behaviour - by alex.trejo@tttnet.com.mx - Yesterday, 05:12 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)