Hello,
First of all, sorry for asking the question which has been asked many times before! I looked around, and I seem to be doing everything right, but still getting no result.
Here's the problem: I have a Grid with DataSource with autoBind set to false. Upon a certain action, I'd like to pass additional parameters to DataSource, and to read the data. However, after setting the parameters, when "read" happens I can see in the "Network" tab in Dev Tools, that my additional parameters are not sent. I have tried to do it two different ways:
1. Set transport read data:
The network tab shows this (my additional parameter is not there):
.../lookup-tables/get-lookup-data?take=15&skip=0&page=1&pageSize=15
2. Change the read URL to include my parameter:
The network tab shows the same output as above!! It is as if the chances I'm making are ignored...
I'm stumped. Am I don't something wrong? Please let me know...
First of all, sorry for asking the question which has been asked many times before! I looked around, and I seem to be doing everything right, but still getting no result.
Here's the problem: I have a Grid with DataSource with autoBind set to false. Upon a certain action, I'd like to pass additional parameters to DataSource, and to read the data. However, after setting the parameters, when "read" happens I can see in the "Network" tab in Dev Tools, that my additional parameters are not sent. I have tried to do it two different ways:
1. Set transport read data:
$('#lookupDataGrid').data('kendoGrid').dataSource.transport.read.data ={"UserLookupTableID":123};console.log($('#lookupDataGrid').data('kendoGrid').dataSource.transport.read.data); // outputs correct object $('#lookupDataGrid').data('kendoGrid').dataSource.read();.../lookup-tables/get-lookup-data?take=15&skip=0&page=1&pageSize=15
2. Change the read URL to include my parameter:
var url = '.../lookup-tables/get-lookup-data?UserLookupTableID=123;$('#lookupDataGrid').data('kendoGrid').dataSource.transport.read.url = url;$('#lookupDataGrid').data('kendoGrid').dataSource.read();I'm stumped. Am I don't something wrong? Please let me know...