Hello. I have the following code for a column filter in a Grid:
$ cputipos = GetTiposCpu ();
$ col [“stype”] = “select”;
$ col [“searchoptions”] = array (“value” => “;”. $ cputipos);
The function GetTiposCpu obtains data to be displayed in the combobox. The problem is that by choosing an option from the combo does not work the filter. Option I choose, the Grid is always displayed empty.
You can help me fix it?
Thank you!!
Cheers!!
|
1 2 3 4 5 6 7 8 9 10 11 12 |
$cputipos is generate by: function GetTiposCpu() { $link=ConectarBD(); $result=$link->query("select * from cpu_tipos" ) or die(mysqli_error($link)); $crta = "" ; while( $row = $result->fetch_array() ) { $crta = $crta. $row['cputipoid']. ":" .trim($row['cputipodes']).";" ; } $crta = substr( $crta, 0 , strlen( $crta) - 1 ) ; // to delete the last <span id="ecxresult_box" class="ecxshort_text" lang="en"><span class="ecxhps">semicolon</span></span> $link->close() ; return $crta; } |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top