I have a status field in my database and it is a 1-no status, 2-invited and 3-accepted.
I want the column to be the meaning and not the number. How can I achieve this?
you should be able to do something like this:
$col["title"] = "status"; // caption of column
$col["name"] = "status"; // grid column name, same as db field or alias from sql
$col["viewable"] = true;
$col["hidden"] = false;
$col["editable"] = true;
$col["edittype"] = "select"; // render as select
$col["editoptions"] = array("value"=>'1:No;2:Invited;3:Accepted');
$cols = $col;
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!