comboBox with WebService

2 posts, 1 answers
  1. Silderado
    Silderado avatar
    94 posts
    Member since:
    Jun 2007

    Posted 29 Dec 2010 Link to this post

    Hi,

    I'm using the example http://demos.telerik.com/aspnet-ajax/combobox/examples/programming/performance/defaultcs.aspx
    and needed to make a change in case of webservice, but I have no idea how.

    In the example listed webservice code checks the value of the information reported for the combobox and performs a filter on the database, I needed to make a filter using another combobox to check the values listed, as is being done?
  2. Answer
    msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 09 Jan 2011 Link to this post

    Check this page: http://www.telerik.com/help/aspnet-ajax/combo_loadondemandwebservice.html

    In the OnClientItemsRequesting event, you can add the value of the 2nd combobox:
    <script type="text/javascript">
       function OnClientItemsRequesting(sender, eventArgs)
       {
           var context = eventArgs.get_context();
           context["FilterString"] = $find('<%= ComboBox2.ClientID %>').get_value();
       }
    </script>

    Then reference the FilterString in the WebService and you should be all set!  Please mark as answer if this helps you.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top