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

WCF service is called always, despite set_cancel(true)

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 08 Dec 2010, 07:38 PM
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.

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 14 Dec 2010, 12:50 PM
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.
Tags
Grid
Asked by
Alexander
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or