EasyUI Forum
May 21, 2024, 04:56:17 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid auto-loading  (Read 11093 times)
Giandomenico Pastore
Newbie
*
Posts: 9



View Profile
« 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...
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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');
Logged
Giandomenico Pastore
Newbie
*
Posts: 9



View Profile
« Reply #2 on: February 13, 2013, 02:02:17 AM »

Thanks...  Wink
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!