How to restrict maximum height of row in jqgrid

前端 未结 2 745
一整个雨季
一整个雨季 2020-12-05 16:36

Column contains long multiline texts which make row height too big.

I tried styles below based on Tony\'s answer in http://www.trirand.com/blog/?page_id=393/help/po

2条回答
  •  臣服心动
    2020-12-05 17:11

    I know this is late, but you can use this CSS for ALL columns:

    .ui-jqgrid tr.jqgrow td {
        white-space:nowrap;
    }
    

    Or, for an individual column:

    .no-wrap-col {
        white-space: nowrap;
    }
    

    Then in your ColModel, on whichever column you want to prevent wrapping on, apply the class:

    classes: "no-wrap-col"
    

提交回复
热议问题