Is there a way to force a limit so no more than say 5000 rows can be pulled out for any function? Whether it be export, search by date range etc.
3 Answers
Hello,
You can connect on_data_display event and truncate the $data array to 5000 if it is greater.
e.g.
$e["on_data_display"] = array("filter_display", null, true);
$grid->set_events($e);
function filter_display($data)
{
if (count($data["params"]) > 5000)
$data["params"] = array_slice($data["params"],0,5000);
}
Refer docs > event handling for help.
Your Answer