This question is locked. New answers and comments are not allowed.
Hi.
When my grid loads or I do something with it (sorting the columns, grouping etc.) I want to pass an array of IDs of Books to the controller. And than the controller should use Linq to SQL to fetch the Books from the database and filter out the Books with IDs that I have passed.
I have tried with: .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Controller", new { IDBooks }))
and: using ClientEvent: .OnDataBinding("onDataBinding") and in onDataBinding function pass the array on countless ways but no resault. Eg.
or:
I was reading all sorts of posts and blogs but nothing helps me.
Is there any way to do this?
When my grid loads or I do something with it (sorting the columns, grouping etc.) I want to pass an array of IDs of Books to the controller. And than the controller should use Linq to SQL to fetch the Books from the database and filter out the Books with IDs that I have passed.
I have tried with: .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Controller", new { IDBooks }))
and: using ClientEvent: .OnDataBinding("onDataBinding") and in onDataBinding function pass the array on countless ways but no resault. Eg.
var $IDBooks = $('input[name="IDBooks"]');var grid = $("#BooksForBorrowing").data("tGrid");grid.rebind({ IDBooks: $IDBooks });var $IDBooks= $('input[name="IDBooks"]');// pass additional values by setting the "data" field of the event argumente.data = { IDBooks: $IDBooks};I was reading all sorts of posts and blogs but nothing helps me.
Is there any way to do this?