Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
May be you can look at the clientEvent of table:
Table::create(array(
"clientEvents"=>array(
"rowClick"=>"function(params){
//params.rowData
//params.rowIndex
//In here, you can write javascript to redirect.
window.location.href = "http://somehere.com";
}"
)
));
Basically you write a javascript function on the event of row clicked and redirect browser to somewhere. You can get the rowData
as well as rowIndex
from handle function's parameter.
Hi,
It worked out nicely.
First I needed to add a hidden column to the table in order to get a reference id. I made the hidden column by:
"cssStyle"=>array("td"=>"display:none","th"=>"display:none","tf"=>"display:none"),
Then I applied the rowClick event as:
`
"clientEvents"=>array(
"rowClick"=>"function(params){
window.location.href = 'http://somehere.com/?' + params.rowData['some_id'] ;
}"
),
Thanks for your help!
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo