This is a migrated thread and some comments may be shown as answers.

Modify Read:URL In datasrouce for wrapper

1 Answer 45 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 05 Nov 2015, 12:20 PM

 I have a combobox as a wrapper in MVC within a cshtml page.  I need to modify the read.URL to build my url and supply the appropriate search criteria.  I found a similar question and provided a link below to the answer, however this is using pure javascript and doesn't really fit my situation. How do i create a custom function in the .Read of the datasource so that i can build my url but do it with the MVC Wrapper?  Also is there more detailed documentation with comments etc the api just shows you a very slim example for a feature and doesn't really document what is going on.  Any help would be appreciated.

 

 Link to answer that answers my exact question but i need the answer for the MVC Wrapper not javascript:

http://www.telerik.com/forums/how-do-i-specify-a-variable-in-the-middle-of-data-source-read#BPwmciunhUyELOSvZKBqIQ

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 09 Nov 2015, 10:28 AM
Hello Nick,

The ComboBox MVC wrapper allows to send additional data to the server using the transport.read.data callback. You can find more details for this here: Buildинг the whole URL dynamically is not supported with the MVC wrappers. If you would like to create different URL instead of passing an additional data, then you will need to use JavaScript declaration of the widget.

Regards,
Georgi Krustev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ComboBox
Asked by
Nick
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or