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

comboBox with WebService

1 Answer 72 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Silderado
Top achievements
Rank 1
Silderado asked on 29 Dec 2010, 07:23 PM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
msigman
Top achievements
Rank 2
answered on 09 Jan 2011, 09:22 PM
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.
Tags
ComboBox
Asked by
Silderado
Top achievements
Rank 1
Answers by
msigman
Top achievements
Rank 2
Share this question
or