Searchbox using webservice - pass parameters

4 posts, 0 answers
  1. Ajit
    Ajit avatar
    3 posts
    Member since:
    Aug 2012

    Posted 26 Mar 2013 Link to this post

    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
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 28 Mar 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Derek
    Derek avatar
    1 posts
    Member since:
    Jun 2013

    Posted 20 Aug 2013 Link to this post

    Has the feature to pass parameters been added in Q2?  How do you use it?
  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 21 Aug 2013 Link to this post

    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.
Back to Top