Page 1 of 1

How to load datagrid without accessing the databse on initia

Posted: Oct 28th, '14, 12:39
by olabodeaguda
How to load datagrid without accessing the database on initial loading of the database.I want to be able to access the database when i search for record

Re: How to load datagrid without accessing the databse on initia

Posted: Oct 29th, '14, 18:40
by administrator

Re: How to load datagrid without accessing the databse on initia

Posted: Nov 12th, '14, 15:07
by olabodeaguda
administrator wrote:http://www.apphp.net/forum/viewtopic.php?f=33&t=120


The suggestion below as discussed on the url above will still go to the database. I want a situation whereby onload of the page, it won't go into the database until a data is searched.

$dgrid->DataSource($db_conn, $sql, $default_order_field, $default_order_type);
$dgrid->hideGridBeforeSearch = true;
(old syntax: $dgrid->hide_grid_before_search = true;)