width columns

Questionswidth columns
josep asked 4 years ago

Hello,

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?

tahnks

3 Answers
Abu Ghufran answered 4 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 4 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 4 years ago

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

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

Your Answer

3 + 14 =

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:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!