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

Searchbox using webservice - pass parameters

3 Answers 123 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Ajit
Top achievements
Rank 1
Ajit asked on 26 Mar 2013, 02:25 PM
Hi,

I would like to use a webservice to fetch the search results for my searchbox. I've created an .asmx file as shown in the examples online, and can get to the webservice call and grab the searchbox context without issue.

SearchRows = new RadSearchBox() { ID = pv.ID + "_SearchRows", OnClientButtonCommand = "RowSearchBox_ClientButtonCommand",
                EnableAutoComplete = true, ShowSearchButton = false, EmptyMessage = "Search Rows", Width = Unit.Parse("300px"), Skin = "Metro",
                OnClientSearch = "RadRowsSearch_ClientSearch" };
            SearchRows.DropDownSettings.Width = Unit.Parse("300px");
            SearchRows.DropDownSettings.Height = Unit.Parse("400px");
            SearchRows.WebServiceSettings.Path = "~/WebServices/LoadSearchResults.asmx";


However, in order to generate the results I want to show, I need to pass along a few additional parameters. Is there any way to do this? Looks like there's nothing I can set in the OnClientDataRequesting client handler. And I tried setting HttpGet to true and passing parameters through the URL string, but it returns a 500 Page not found error.

Thanks,

Ajit

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 28 Mar 2013, 03:29 PM
Hi Ajit,

Currently such functionality to pass additional information is not support from the RadSearchBox control. We shall implement it for the Q2 release of our controls.

Kind regards,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Derek
Top achievements
Rank 1
answered on 20 Aug 2013, 02:36 PM
Has the feature to pass parameters been added in Q2?  How do you use it?
0
Dimitar Terziev
Telerik team
answered on 21 Aug 2013, 06:20 AM
Hi Derek,

Yes, the functionality to pass additional information to the server is available in Q2 version of our controls. Here is the help article for this feature.

Regards,
Dimitar Terziev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
SearchBox
Asked by
Ajit
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Derek
Top achievements
Rank 1
Share this question
or