in telerik extenstion to pass additional data to ajax request I used
function onDataBinding(e)
{
e.data = {argument : 4};
}
where e was div cointainer with data object inside, How can I do this using kendo ? I tried the same but for Kendo e arqument is sth totally different.
We can use options given below to pass additional parameters. think you shouldve gave example of js function, and put that the param data, not the param name needs to be stringified, and the whole thing wrapped in an object like so: function passAdParam() { return {test: JSON. stringify($("#search"). val())} } .
It sets the page size to the total number of records. If a pageSize setting is provided for the data source then this value will be selected initially.
parameterMap Function. The function which converts the request parameters to a format suitable for the remote service. By default, the data source sends the parameters using jQuery conventions. The parameterMap method is often used to encode the parameters in JSON format.
Finally i got the answer my own and it is :
$('#grid').data('kendoGrid').dataSource.read({name:value})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With