Column Title – Two Rows of Text

QuestionsColumn Title – Two Rows of Text
Ty asked 9 years ago

How can I increase the height of the column header and have column title on two lines?

Example column title:

Rebate Amount

Wanting two lines:

Rebate
Amount

I've used Firebug and worked on changing CSS with no luck:

.ui-jqgrid .ui-jqgrid-hbox {
float: left;
padding-right: 20px;
padding-top: 20px;
}

Thank you

3 Answers
Ty answered 9 years ago

Some further detail of the grid code:

$col = array();
$col["title"] = "Rebate Amount";
$col["show"] = array("list"=>true, "edit"=>true, "view"=>true);
$col["name"] = "rebate_amount";
$col["width"] = "12";
$col["align"] = "right";
$col["editable"] = true;
$cols[] = $col;

<style>
/* header */
.ui-jqgrid .ui-jqgrid-htable th {height: 30px;}
.ui-jqgrid .ui-jqgrid-htable th div { height: 20px; text-align:left; }

</style>

Ty answered 9 years ago

I'm using this version: phpgrid-full-v1.5.2.zip

Abu Ghufran answered 9 years ago

You can use html tags in title.

$col["title"] = "Rebate<br>Amount";

Your Answer

15 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?