Dear,
This is the source of my grid:
var source =
{
datatype: “json”,
datafields:
[
{ name: ‘Model’ },
{ name: ‘Description’ },
{ name: ‘Year’, type: ‘int’ }
],
id: ‘id’,
url: ‘machines_load.php’,
data: { Tipology: 1 },
root: ‘data’
};
In this way, machines_load.php page can be retrive from database only machine of Tipology=1
My question is:
How can I change the value of Tipology runtime in Javascript before refresh a grid ?
I would like a button that assign a new value of Tipology, and then refresh a grid with a new values.
Somebody can I help me ?
Thanks,
Rinaldo