Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Persist data source set from JavaScript

$
0
0

Hi Ianko

 

Unfortunately, this does not seem to work for me as my extra parameters always comes up with the default value when the page is first loaded.

 

My controller defines the following parameters:

[DataSourceRequest] DataSourceRequest request, int objectId

 

And so i have tried 

multiSelect.dataSource.options.transport.read.url = "/Items/GetItems/" + value;

multiSelect.dataSource.options.transport.read.url = "/Items/GetItems/GetItemsList=" + value;

multiSelect.dataSource.options.transport.read.url = "/Items/GetItems?GetItemsList=" + value;

 

But the passed in extra parameter is always set to 0.

 

I can see on the network activity that the URL address is properly set but i can't get the extra parameter to pass over.

 

As mentioned in my previous post, adding the parameter in the read method (like so: multiSelect.dataSource.read({ id: value });) will pass the data back to the controller, however the problem with this is that any sort of virtualisation will mess it up. (it will pass in the default value of 0 instead of the changed value).

 

Thanks for your help.


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>