Editoptions label

QuestionsEditoptions label
Vygandas Pigaga asked 6 years ago

Hello,

Can I change:
$col4[“editoptions”] = array(“table”=>”conf_kainos”, “id”=>”id”, “label”=>”kodas”);

INTO smth like:
$col4[“editoptions”] = array(“table”=>”conf_kainos”, “id”=>”id”, “label”=>”CONCAT(kodas + pavadinimas)”);

1 Answers
Abu Ghufran Staff answered 6 years ago

Yes, you can specify SQL query instead of these table,id,label combination. e.g.

$col4[“editoptions”][“sql”] = “SELECT id as k, CONCAT(kodas + pavadinimas) as v FROM conf_kainos”;

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

14 + 2 =

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?