Autocomplete and formatte in the same column

QuestionsAutocomplete and formatte in the same column
Alexander Toth asked 1 year ago

Question: is possible to use in the same column

$col[“formatter”] = “autocomplete”;
$col[“formatter”] = “select”;

I’ve tried but it doesn’t work:

$col = array();
$col[“title”] = “Responsabile”;
$col[“name”] = “responsabile”;
$col[“editable”] = true;
$col[“editrules”] = array(“number”=>true);
$col[“isnull”] = true;
$col[“formatter”] = “autocomplete”;
$col[“formatoptions”] = array(“sql”=>”SELECT dipendenti.ID_Dipendente, dipendenti.Cognome as v FROM dipendenti”,”search_on”=>”Cognome”,”callback”=>”fill_form”);
$str = $g->get_dropdown_values(“SELECT ID_Dipendente as k, Cognome as v FROM dipendenti”);
$col[“editoptions”] = array(“value”=>$str);
$col[“formatter”] = “select”;
$cols[] = $col;

function fill_form(data)

1 Answers
Abu Ghufran Staff answered 1 year ago


Please refer demos/integration/dropdown-select2.php

select2 renders dropdown along with autocomplete feature.

Abu Ghufran - Dev Team
PHP Grid Framework
Your Answer

15 + 7 =

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 / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!