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

WebServiceSetting supports Page Method calls

3 Answers 120 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Joel Brom
Top achievements
Rank 1
Joel Brom asked on 19 Feb 2010, 05:39 PM
<WebServiceSettings Method="PageMethods.LoadCombo" Path="Admin.aspx.cs" /> 
I have coded my web method in the code behind rather than into an asmx.  I get Server Method 'PageMethods.LoadCombo' failed. when clicking on the dropdown arrow.
I created a test button that successfully executes the PageMethod, however, I do not want my users to have to click on another control.

Must I create a Web Service for LoadOnDemand to function when the populating the RCB?

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 19 Feb 2010, 06:03 PM
Hi Joel Brom,

We have an example showing RadComboBox loading on demand from a Page Method. Please compare the implementation to yours.

Regards,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
mark baer
Top achievements
Rank 1
answered on 17 Mar 2011, 10:58 PM
I can get the Page Method working when the user is first looking for something in the Combobox, but can I still use this methodology when I put the form in "Edit" mode?  Meaning, I've gone to the database, retrieved my "Order" object and now I'm going to populate the textboxes and comboboxes on the page.  But if one of my comboboxes is using this lazy loading, I won't be able to pre-select the value that was saved for that order, correct?  Is there a decent work around?

thanks
0
Simon
Telerik team
answered on 18 Mar 2011, 11:43 AM
Hi mark baer,

Yes, there is a decent workaround, shown in this demo.

I hope it helps.

Kind regards,
Simon
the Telerik team
Tags
ComboBox
Asked by
Joel Brom
Top achievements
Rank 1
Answers by
Simon
Telerik team
mark baer
Top achievements
Rank 1
Share this question
or