hidden : show list only

Questionshidden : show list only
Samsun asked 10 years ago

Hey Mr Abu,

I want to my column is hidden because the value is by default value, but in list i wan to show the value.

I try like this:
$col = array();
$col["title"] = "COlumn Name";
$col["name"] = "column1";
$col["width"] = "300";
$col["align"] = "left";
$col["search"] = false;
$col["editable"] = true;
$col["show"] = array("list"=>true, "add"=>false);
$col["editoptions"] = array("defaultValue"=>substr($_SESSION['opd'],0,4));
$cols[] = $col;

BUt its not works.

Regards,
Samsun

1 Answers
Abu Ghufran answered 10 years ago

Try setting:

$col["default"] = substr($_SESSION['opd'],0,4);

This is useful for setting default content for virtual columns. You can also use {column-name} in it.

Your Answer

1 + 8 =

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?