How do you control the width of the multiselect checkbox column?

QuestionsHow do you control the width of the multiselect checkbox column?
Gary Wilson asked 2 years ago

Hi Abu,

I have a grid where you can select multiple rows using the multiselect option.

$opt_comp[“multiselect”] = true;
$opt_comp[“multikey”] = true;

However, this first column is quite wide but with other columns I have set a fixed width. How can I do the same for this checkbox column?

Thanks

Gary

Screenshot: https://imgur.com/a/VepFwjw

6 Answers
Stephen answered 2 years ago

Hi Abu,

I think this may be a bug in the new version, as I’m getting this issue also.

Thanks,
Stephen

Stephen answered 2 years ago

Sorry Abu – this is not a bug, just a wider default has been set.

The following option can be used to control the width:

$opt[“multiselectWidth”] = “5”;

Gary Wilson answered 2 years ago

Thank you Stephen but I introduced this option and the grid no longer displayed. Can you or Abu please recheck this? I even tried setting equal to 5 (without quotes).

Abu Ghufran Staff answered 2 years ago

Perhaps, you need to set following. If not resolved, you can sent related grid code using https://gist.github.com/

$opt_comp["multiselectWidth"] = "20";
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Gary Wilson answered 2 years ago

Hi Abu,

Grid sent direct as attachment to email.

Many thanks

Gary

Gary Wilson answered 2 years ago

Hi Abu.

This is now resolved. Thank you for your email. I am not sure why your suggestion did not work first time I tried this but as long as it is working.

Thanks
Gary

Your Answer

16 + 13 =

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?