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

[Solved] RadComboBox WebService Needs Parameters

1 Answer 239 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 2
Don asked on 07 May 2009, 02:05 PM
I have successfully implemented two web services to populate two RadComboBox's.  I appreciate the elegant simplicity of Telerik's design.  However, yesterday I discoverd that it's important to give the server-side web service code additional information, more than just the characters that the user typed that get passed in Context.  Please comment on these possible means to that end:

1.  I could concatenate the parameters onto Context.Text.  Instead of just "typedChars", I would separate with ":" and make it into "typedChars:param1:param2".  To accomplish this, I would need to customize the client side call to the web service.  How can I customize the Javascript code in order to modify the Context.Text value?

2. Put "param1" and "param2" into Session.  However, the web server side doesn't appear to have access to the Session the web site itself uses.  Is there a way to access Session?

3. Write "param1" and "param2" into the SQL Server database.  These parameters are fixed when the user logs on, so I know them well before the user types characters into the RadComboBox.  However, there would be several pairs of such values, two for each logged on browser user, and I need a way to identify the correct browser user.  What is common between the information the server-side page code knows and what the server-side web server code knows?

4. Any other method you may be aware of.

TIA,
Don

1 Answer, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 07 May 2009, 03:39 PM
Hello Don,

You can use the context object (of Dictionary type) in OnClientItemsRequesting event. Please check this help topic:
Passing Context Information to the Server


Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Don
Top achievements
Rank 2
Answers by
Veselin Vasilev
Telerik team
Share this question
or