Grid Height Options

QuestionsGrid Height Options
Gary Brett asked 4 years ago

Hello, I used the $opt["height"] = "100"; & $opt["height"] = ""; in an attempt to resize the grid height but it doesn't seem to change at all, is the below code ok? I just need it to be the size of the first 20 rows so no scrollbars appear?

// set few params
$grid["caption"] = "Adviser Records";
$g->set_options($grid);
$opt["height"] = "600";

Thank you

Gary

2 Answers
Abu Ghufran answered 4 years ago

It should be above set_options function and with $grid var.

$grid["caption"] = "Adviser Records";
$grid["height"] = "600";
$g->set_options($grid);

Gary Brett answered 4 years ago

Brilliant, thank you for your help.

Your Answer

4 + 20 =

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!