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

[Solved] Dynamic ComboBox Webmethod

1 Answer 199 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Vme
Top achievements
Rank 1
Vme asked on 06 May 2008, 12:13 PM
I'm trying to dynamically change a webmethod when a user clicks a radio button.  The event fires as it should and changes the property however, the webservice remains the same?  Is this even possible?  I've tried two methods:

if

(rbIPSearch.Checked)

{

cbofilter.Attributes[

"Method"] = "IPAddressLookup";

}

else

{

cbofilter.Attributes[

"Method"] = "FullOULookup";

}

AND


if

(rbIPSearch.Checked)

{

cbofilter.WebServiceSettings.Method =

"IPAddressLookup";

}

else

 

{

cbofilter.WebServiceSettings.Method =

"FullOULookup";

}

Neither seem to work?

1 Answer, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 06 May 2008, 02:14 PM
Hello Vme,

I suggest that you use the following line of code:

 cbofilter

.get_webServiceSettings().set_method("FullOULookup")


Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Vme
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or