Issue solved…
var source =
{
datatype: “json”,
datafields:
[
{ name: ‘ID’ },
{ name: ‘Name’ }
],
id: ‘ID’,
url: ‘../Employee/GetRole’,
async: false
};
Added “../” to url..
But for Grid
method is getting called properly without “../”.
Could you please confirm why is it so?
Regards
Ashish