width columns

Questionswidth columns
josep asked 5 years ago


I work with phpgrid loading data from an array
Is it possible to change the width of a column once already loaded data and created the phpgrid object?


3 Answers
Abu Ghufran answered 5 years ago

Given that list1 is grid id, and invdate is column name, you can use following code on some button click event.
$('#list1').setColProp('invdate',{width: 70});

This is from jqgrid api available here: http://www.trirand.com/jqgridwiki/doku.php

josep answered 5 years ago

The code is:

$out = $g-> render ("agendacitas");

The function I created to expand the width of the line is:

ampliar_agenda function () {
$ ('# agendacitas') setColProp ('10_11', {width: 100}).;

where "10_11" is the title of the column

but does not work

Did any limitations with ANY PROPERTY?

Abu Ghufran answered 5 years ago

$ ('#agendacitas') setColProp ('column-name-here', {width: 100});

Instead of title, it should be column name defined in $col["name"]

Your Answer

1 + 18 =

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 / 5. Vote count:

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

Let us improve this post!