WFC Web service postback is undefined on OnClientItemClicking

4 posts, 1 answers
  1. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 11 Jun 2013 Link to this post

    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.
  2. Answer
    Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 14 Jun 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 14 Jun 2013 Link to this post

    Thanks for your help.

    We'll try to identify our problem through your example.
  5. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 27 Jun 2013 Link to this post

    Hi,

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

    Regards,
Back to Top