Hi
I'm using a webservice to populate a RadComboBox.
Here is my js:
Here is my markup (The web service path is set in codebehind):
Here is my webservice method:
Here is the SearchComboBoxItemData class:
This all works fine on my local set, but on our production server when I click in the combobox, a windows explorer message box pops up saying: "There was an error processing the request." There isn't any error published to the event viewer. Is there anything I can do in my code to get more details about the error that is occurring, so I can fix it?
Thank You
I'm using a webservice to populate a RadComboBox.
Here is my js:
function OnClientItemsRequested(sender, eventArgs) { |
var items = sender.get_items(); |
if (items.get_count() == 2) { |
OpenEntityWindowFromItem(items.getItem(1), sender); |
} |
} |
function HandleRequestStart(sender, eventArgs) { |
var context = eventArgs.get_context(); |
context["Filter"] = sender.get_text(); |
} |
function OnClientItemsRequestFailedHandler(sender, eventArgs) { |
alert(eventArgs.get_errorMessage()); |
// set cancel to hide the default message |
eventArgs.set_cancel(true); |
} |
function OnClientSelectedIndexChanged(sender, eventArgs) { |
OpenEntityWindowFromItem(eventArgs.get_item(), sender); |
} |
Here is my markup (The web service path is set in codebehind):
<telerik:RadComboBox ID="uxRadComboBox" runat="server" EmptyMessage="Search..." |
Skin="Web20" EnableEmbeddedSkins="false" |
OnClientItemsRequesting="HandleRequestStart" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged" |
OnClientItemsRequested="OnClientItemsRequested" |
EnableLoadOnDemand="true" OnClientItemsRequestFailed="OnClientItemsRequestFailedHandler"> |
<WebServiceSettings Method="GetSearch" /> |
</telerik:RadComboBox> |
Here is my webservice method:
[WebMethod] |
public SearchComboBoxItemData[] GetSearch(object context) |
{ |
..... |
} |
Here is the SearchComboBoxItemData class:
public class SearchComboBoxItemData |
{ |
public string Text { get; set; } |
public string Value { get; set; } |
} |
This all works fine on my local set, but on our production server when I click in the combobox, a windows explorer message box pops up saying: "There was an error processing the request." There isn't any error published to the event viewer. Is there anything I can do in my code to get more details about the error that is occurring, so I can fix it?
Thank You