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

[Solved] Populating RadCombBox via WCF

1 Answer 91 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
David Mullings
Top achievements
Rank 1
David Mullings asked on 07 May 2009, 07:41 PM
I have been trying to figure out how to populate a RadComboBox from a WCF call, but I have been having trouble trying to figure out to configure the WebServiceSettings properties correctly. In particular, I wam trying to figure out to set the Path property to point to a WCF that is not local to the website. I have looked over the sample code provide but in all the cases that I reviewed, the .svc file is assumed to be within the same project, but what happens when the WCF service is running on another server?

For example here are the setting found in your samples:

<telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px" Skin="Vista"
EnableLoadOnDemand="true">
<WebServiceSettings Path="ComboBoxWcfService.svc" Method="LoadData" />
</telerik:RadComboBox>


What I want to do is:

<telerik:RadComboBox ID="RadComboBox1" runat="server" width="186px"

 

 

 

MarkFirstMatch="true" Skin="Web20"

 

 

 

EnableLoadOnDemand="true">

 

 

 

<WebServiceSettings Path="http://testserver/LookupService/" Method="LoadData"/>

 

 

 

 

 

Is this possible? And if so, how?

Thanks,
David

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 08 May 2009, 07:58 AM
Hello David Mullings,

Unfortunately we do not support that. RadComboBox web service load on demand is based on ASP.NET Ajax which in turn uses the XMLHttpRequest object. The latter does not work however with cross domain requests for security reasons. Workarounds do exist but they are quite ugly and RadComboBox does not support them out of the box. If this is a major showstopper for you we will consider implementing a workaround as an example.

Regards,
Albert
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
David Mullings
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or