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

WFC Web service postback is undefined on OnClientItemClicking

3 Answers 58 Views
Menu
This is a migrated thread and some comments may be shown as answers.
archimede
Top achievements
Rank 1
archimede asked on 11 Jun 2013, 02:58 PM
Good day,

we could use some help in regards to the subject.
We have a web service which replies clientside to radgrid item selections, and which works as intended.
The problem is that, when we try to use the same function call inside of the OnClientItemClicking we've set for the RadMenu, the function call fails for an unknown reason, simply triggering the OnFailed event of the call.

The call context is the expected one, and we can actually debug the c# function call from the javascript event, and even see that our intended  return = "ok" statement is stepped over, but the OnSuccess event of the web service is never called inside of the OnClientItemClicking.
The same OnSuccess event is instead called regularly when the event fires under the radgrid.

Any idea is appreciated.

3 Answers, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 14 Jun 2013, 01:12 PM
Hello,

Since I am not able to replicate that problem locally I have attached a sample project that implements very similar scenario. In the OnClientItemClicking client-side event handler an Ajax request is sent to a WCF service. As you can notice in the video the response is 200 OK and OnSuccess is triggered as expected. Please follow that pattern to implement that functionality in your project.


Regards,
Boyan Dimitrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
archimede
Top achievements
Rank 1
answered on 14 Jun 2013, 02:58 PM
Thanks for your help.

We'll try to identify our problem through your example.
0
archimede
Top achievements
Rank 1
answered on 27 Jun 2013, 12:14 PM
Hi,

Thanks for the example.
We change javascript for jquery to call the WCF and now works!!!

Regards,
Tags
Menu
Asked by
archimede
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
archimede
Top achievements
Rank 1
Share this question
or