EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: roberto on February 27, 2021, 07:25:08 PM



Title: propertygrid url change
Post by: roberto 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


Title: Re: propertygrid url change
Post by: jarry on February 28, 2021, 07:33:41 PM
Please call the 'load' method with a new url.
Code:
$('#pg1').propertygrid('load', 'getdata.php');