Hello,
i loaded data not from mysql:
$url="http://example.com/ip/func_iks.php";
$response = file_get_contents($url, false,stream_context_create($arrContextOptions));
$obj=json_decode($response,true);
$g->table = $obj;
$col = array();
$col["title"] = "Testtesttest";
$col["name"]="tab_id";
$col["width"]="40";
$col["editable"] = false;
$cols[] = $col;
This work perfectly.
But when i try add :
$col["link"] = "http://example.com/ip/sphinx.php?tabid={tab_id}";
i have empty value at {tab_id} column.
The link property does not work with array based grid, and it's a known limitation.
You can iterate array data via for loop and change value of tab_id to html <a> tag instead of plain id.
Refer demos/loading/load-array.php … it uses hyperlink in grid.
Thank you.
it's worked nice
foreach ($obj as &$ex){
$query_url="http://example.com/ip/sphinx.php?tabid=" . $ex["tab_id"];
$ex['tab_id'] = "<a class='fancybox' href='" . $query_url . "'>" . $ex['tab_id'] . "</a>";
}