Hello,
I have sen you login data for my site.
I need to display a string rather then the actual value from database (which is INT). How can I do this?
Example:
value = 0 then value = “no”
value = 1 then value = “yes”
value = 3 then value = “not decided”
Should I do a select inside a select and create a table with INT => string?
4 Answers
$col[“editoptions”][“value”] = “3:not decided;1:yes;0:no”;
https://www.gridphp.com/demo/demos/apps/todos.phps
line 220
Perfect. Thank you Sir.
I have added:
$col[“formatter”] = “select”;
$col[“editoptions”][“value”] = “0:no;1:yes”;
Works like a charme.
Note: Check if the code has correct quotes when you copy paste.
Hello,
I’ve emailed you latest build that contains the fix of it.
Your Answer