EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Giandomenico Pastore on February 08, 2013, 04:06:02 PM



Title: Datagrid auto-loading
Post by: Giandomenico Pastore on February 08, 2013, 04:06:02 PM
Hi,
it's possible to disable autoloading when datagrid is initialized? I want to set "url" parameter in initialization, but I want execute the request after...


Title: Re: Datagrid auto-loading
Post by: stworthy on February 09, 2013, 06:37:16 AM
To prevent from loading data, set url property to null. To restore requesting data from server, set url property and call reload method.
Code:
$('#dg').datagrid('options').url = ...;
$('#dg').datagrid('reload');


Title: Re: Datagrid auto-loading
Post by: Giandomenico Pastore on February 13, 2013, 02:02:17 AM
Thanks...  ;)