WCF service is called always, despite set_cancel(true)

2 posts, 0 answers
  1. Alexander
    Alexander avatar
    152 posts
    Member since:
    Jun 2012

    Posted 08 Dec 2010 Link to this post

    How to prevent WCF service from running second time for SelectCount event? I use GetDataAndCount method, however I can see that
    WCF service is called twice for some reason...

    Could it be because of additional custom parameter, that I had to add into databinding (as in your example), so GetDataAndCount is not 'recognized' as a method to be called once?

    Addition: it's ok now, I had to add additional parameter directly into javascript method, because DataBinding event is not fired for some reason.

    Now the problem is that WCF service ignores cookieless session from ASP.NET site.
  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 14 Dec 2010 Link to this post

    Hello Alexander,

    When the GetDataAndCount method is used the RadGrid client-side data binding you get both data and total items count in a single request. I am sending you a simple example which demonstrates this. Also on the following link I attached a small video which shows that there is only one request. More information about Client-side binding you could find on the following documentation article:
    http://www.telerik.com/help/aspnet-ajax/client-side-binding.html

    Additionally on the following links you could find information about: WCF and cookieless sessions
    http://forums.89.biz/forums/WCF+call+with+cookieless+sessions
    http://kaushalp.blogspot.com/2009/03/enter-cookieless-sessions-you-dont-have.html

    I hope this helps.

    All the best,
    Radoslav
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top