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

[Solved] Getting the SelectedValue server side with webservice

2 Answers 211 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ron Cirka
Top achievements
Rank 1
Ron Cirka asked on 07 Aug 2009, 08:47 PM
I am trying to get the SelectedValue of a RadComboBox that is populated via a webservice. However, the SelectedValue is blank when I try to get the value when I postback. How can I get the selected value server side?

Thanks,
Ron

<telerik:RadComboBox ID="uxAccount" runat="server" Height="150px" EnableLoadOnDemand="True" 
                                                WebServiceSettings-Path="~/ScheduleWebService.asmx" CausesValidation="false" 
                                                 WebServiceSettings-Method="GetRooms" 
                                                ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                            </telerik:RadComboBox> 

2 Answers, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 10 Aug 2009, 03:42 PM
Hello Ron Cirka,

When using LoadOnDemand and WebServices use the Text property of the RadComboBox to obtain the currently selected value. Example:

 
protected void RadComboBox1_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) 
    { 
        string value = RadComboBox1.Text; 
         
    } 

More information on the LoadOnDemand support and how to use webservices can be found here.

All the best,
Genady Sergeev
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.
0
Ron Cirka
Top achievements
Rank 1
answered on 10 Aug 2009, 04:32 PM
Thanks for the response. I was using a popup control that was interfering with the postback. It's been resolved now.
Tags
ComboBox
Asked by
Ron Cirka
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Ron Cirka
Top achievements
Rank 1
Share this question
or