javascript - JQgrid headers are not at the same line as columns -


i new here. have kind of problem: enter image description here

i want: - column width must depend of text lenght. - headers must @ same line columns.

i have tried many solutions (like shinktofit:true; showcolwidth etc), without no success. using jqgrid 4.4.

and here function resize columns:

<script> function resize(tagname){  var elements = document.getelementbyid('gbox_list').getelementsbytagname(tagname);  for(var = 0, length = elements.length; < length; i++) {        elements[i].setattribute("style", "display:inherit);       }     } </script> 

i here calling function:

< button type="button" onclick="resize('tr');" >przycisk< /button> 

thanks help.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

angular - Copying node modules to wwwroot AspNetCore -