How could one get the selected value from a radsearchbox client template back to the server code?
Is there any other method than sending it in a url querystring?
Thanks, Marc
1 Answer, 1 is accepted
0
Attila Antal
Telerik team
answered on 28 Jun 2021, 08:44 AM
Hi Marc,
Depending on whether you are trying to send selected values (assuming selection from your description) or the search context of the component, the implementation may vary.
In the case of search context, you can use AJAX for sending data to the server. For instance, using the OnClientSearch you can get the context you're searching for, then call the ajaxRequest(arguments) method of RadAjaxManager to send the data to the server. You can also pass more arguments to this method as we have instructed here: Pass More than one Argument