width columns

Questionswidth columns
josep asked 10 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 10 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 10 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 10 years ago

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

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

Your Answer

11 + 15 =

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?