I'm having trouble using the option 'data' to send variables to the server with a get command when doing a read.
Example of the code that doesn't work:
Instead I now use the following:
Example of the code that doesn't work:
var dataSource = new kendo.data.DataSource({ transport: { read: { url: '/OFB/GetMijnUrenOpAct', dataType: "json", contentType: 'application/json; charset=utf-8', type: "GET", data: { sendVar1: var1,sendVar2: var2 }} });
Instead I now use the following:
var dataSource = new kendo.data.DataSource({ transport: { read: { url: '/OFB/GetMijnUrenOpAct?sendVar1=' + var1 + "&sendVar2=" + var2, dataType: "json", contentType: 'application/json; charset=utf-8', type: "GET",}
});I also tried doing a POST instead of a GET.Is there another way to do this?