Grid, Row, and Column Resizing

QuestionsGrid, Row, and Column Resizing
Bill asked 9 years ago

Is there a way to disable resizing? I don't want the user to resize the grid or any of its rows or columns.

6 Answers
Abu Ghufran answered 9 years ago

To disable resizing overall grid … goto jqgrid_dist.php and remove this line.

jQuery("#<?php echo $grid_id?>").jqGrid('gridResize',{});

To stop column resize, there is no option in current release.

Bill answered 9 years ago

This solved the main part of my problem (the grid is in a form, so its overall size must not be adjustable). In this case, column resizing is NOT a major issue, as long as the overall grid size is frozen. Thanks for your helpful and speedy response.

Abu Ghufran answered 9 years ago

Just found quick alternate to stop column resize.

$col["resizable"] = false;

Bill answered 9 years ago

That works great…thanks again, Abu. This column attribute does not appear to be in the documentation, so I would like to suggest that it be added to the next revision.

Abu Ghufran answered 9 years ago

Hassan, you need to set resizable to false along with other column properties. Check example-all.php for more help.

$col["resizable"] = false;

HB answered 8 years ago

HOW TO SET THAT ?

Your Answer

19 + 14 =

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?