Home › Forums › Guriddo jqGrid JS › Help › Grid row auto height?
Is there a way to make the grid rows change height if the data in a cell is too long to fit on one line?
this is a great idea… and would make the grids look very neat and tidy…I would also like to implement this in my app if it exists.
anyone know if this can be done?
After doing extensive searching, I was able to find a post that said how to do this.
Open up the ui.jqgrid.css file and change the 3rd line in the /* body */ section to this:
.ui-jqgrid tr.jqgrow td {font-weight: normal; overflow: hidden; white-space: normal !important; height:22px; padding: 0 2px 0 2px;border-bottom-width: 1px; border-bottom-color: inherit; border-bottom-style: solid;}
The only difference is that “white-space:” is changed from “pre” to “normal !important”.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS