Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo Grid send extra parameters

Tags:

kendo-ui

How can i send extra parameters on my GRID POST.

This is my tranport config:

transport: {
     read: {
     dataType: "json",
     url: "/user/list",
     type: "POST"
     }
}

I need to send a dynamic extra information ( especial filters XD). I will set a script variable before any submit on grid.

Any Help?

like image 736
JoeLoco Avatar asked Aug 27 '26 11:08

JoeLoco


1 Answers

Question is discussed multiple times on the internet. You should use the Data function. Here is even more information. You can also pass the parameters directly to the read method of the dataSource.

 $('#myGrid').data().kendoGrid.dataSource.read({foo:42})
like image 147
Petur Subev Avatar answered Aug 30 '26 09:08

Petur Subev