A LOT OF COLUMNS – LIST QUITE TALL

QuestionsA LOT OF COLUMNS – LIST QUITE TALL
Cihat asked 12 years ago

Hi,

I built a page with a lot of columns (most are hidden) but when I click the "Columns" in footer to make the user reveal columns, a very tall list comes.

I am using the free edition now. Is it possible to divide content of the "Columns" into columns ?

4 Answers
Abu Ghufran answered 12 years ago

You can try following changes.

1) open jqgrid_dist.php
change jQuery("#<?php echo $grid_id?>").jqGrid('setColumns');
to jQuery("#<?php echo $grid_id?>").jqGrid('setColumns',{width:300});

2) add following style in html part.
<style>
.ColTable tr {
display: block;
float: left;
width: 100px;
}
</style>

You can try changing values of 300 and 100 as per your need.

Cihat answered 12 years ago

It's been great. Thank you very much.

Cihat answered 12 years ago

And also the database column names are written in brackets. How can I hide them?

Abu Ghufran answered 12 years ago

You can alias column name as meaningful non bracket name in sql query.

Your Answer

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