Column title text align right

QuestionsColumn title text align right
Mox asked 4 years ago

Is it possible to right align column title?

I managed to do it with $col[“title”] = “<span style=”text:align:right”>Price</span>”;

but the problem is when you click title to sort column, the asc/desc arrows are displayed below title.

2 Answers
Mox answered 4 years ago

I have found a solution:

“<span style=’float:right;text-align:right;’>Price</span>

Title is right and asc/desc arrows are left.

Abu Ghufran Staff answered 4 years ago

Great, another option is to use this css on page:

.ui-jqgrid .ui-jqgrid-htable th div {
text-align: right;
padding-right: 20px;
}

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

9 + 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?