Header Wrap and Links

QuestionsHeader Wrap and Links
David asked 11 years ago

Hi!

I have 3 questions :-

1) How can I wrap the column headers

for example "Statement number" to be shown as
Statement
Number

2) Show the URL as link

Show clickable yahoo as a link for http://www.yahoo.com

3) How can I make it automatically resize based on the each column header size.

Thank you.

David

3 Answers
Abu Ghufran answered 11 years ago

1) You can use <br> in $col["title"] … for e.g.
$col["title"] = "Statement<br>Number";

2) If you column 'web_url' contains url, then you can use 'default' property in that column
$col["default"] = "<a href='{web_url}'>{web_url}</a>";

3) This feature is not currently available. You need to set width manually.

David answered 11 years ago

Hi! Abu

Thank you for you reply.

I have this issues with the URL

Actual
http://www.abc.com/DocLib/EPB%2019.pdf

Displayed
http://www.cac.com/DocLib/EPB%252019.pdf

The % is being replace with %25

What should I do?

I tried removing all URLendcode reference from jqgrid_dist.php

Still not working.

Thank you.

David

PS: I am using the free version

Abu Ghufran answered 11 years ago

Hello David,

I am unable to generate this issue even in free version, and it seems to be working fine with code.

$col["link"] = "http://www.abc.com/DocLib/EPB%2019.pdf&quot;;
$col["linkoptions"] = "target='_blank'";

Note that %20 is treated as space character when used in URL, so actual file should be "EPB 19.pdf"

Your Answer

5 + 10 =

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?