EasyUI Forum
April 18, 2021, 02:38:37 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: propertygrid url change  (Read 124 times)
roberto
Jr. Member
**
Posts: 71


View Profile Email
« on: February 27, 2021, 07:25:08 PM »

how to I change the url property at runtime?
For exemple I need to define the url AFTER it's loaded, like this:
Code:
var pg = $('#pg1');
var opt = pg.propertygrid('options');
opt.url = 'getdata.php';
pg.propertygrid('enableFilter');
pg.propertygrid('addFilterRule', {field:'id_parent', op:'equal', value:'010'});
pg.propertygrid('doFilter');

this works ok with datagrid but not with propertygrid
Logged
jarry
Administrator
Hero Member
*****
Posts: 1972


View Profile Email
« Reply #1 on: February 28, 2021, 07:33:41 PM »

Please call the 'load' method with a new url.
Code:
$('#pg1').propertygrid('load', 'getdata.php');
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!