Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo grid how to pass additional parameter from java script

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.

like image 559
kosnkov Avatar asked Feb 26 '14 10:02

kosnkov


People also ask

How do you pass parameters in kendo grid read?

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())} } .

What is pageSize in kendo grid?

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.

What is parameterMap in kendo grid?

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.


1 Answers

Finally i got the answer my own and it is :

$('#grid').data('kendoGrid').dataSource.read({name:value})
like image 166
kosnkov Avatar answered Dec 15 '22 18:12

kosnkov