Hi,

I read about client callback and i have a question.

Assume the option "sorting" is set in a gridview.
Each time the user clicks on a fieldname, the data are sorted.
My question is: are the data on each click fetched from the server, or are
they 'cached' on the client-side and so avoiding a lot of transferts
between server and browser?
If not 'cached', would it not bebetter to use the client callback
technology?

Thanks for explanation
Chris

Re: question about client callback and gridview by PeterKellner

PeterKellner
Wed Jun 07 22:56:24 CDT 2006

On Wed, 7 Jun 2006 20:58:54 +0200, "Chris" <chris@dfbd.fdb> wrote:

>Hi,
>
>I read about client callback and i have a question.
>
>Assume the option "sorting" is set in a gridview.
>Each time the user clicks on a fieldname, the data are sorted.
>My question is: are the data on each click fetched from the server, or are
>they 'cached' on the client-side and so avoiding a lot of transferts
>between server and browser?
>If not 'cached', would it not bebetter to use the client callback
>technology?
>
>Thanks for explanation
>Chris
>

Sorting in gridview does cause a postback which resorts the data on
the server, and resends it to the client. The data on the server can
be Cached also.

I do not know of a way to move the data to the client and have a
javascript or sort it. I think you move out of GridView's when you do
that.
Peter Kellner
http://peterkellner.net

Re: question about client callback and gridview by Chris

Chris
Fri Jun 09 06:52:58 CDT 2006

Thanks,

Any reason they didn't implement the client callback technology in the
gridview? It would be faster and less net traffic ...

"PeterKellner" <pkellnernews@73rdstreet.com> wrote in message
news:3r7f82966fos5d84jd811vifdfg4mi24gf@4ax.com...
> On Wed, 7 Jun 2006 20:58:54 +0200, "Chris" <chris@dfbd.fdb> wrote:
>
> >Hi,
> >
> >I read about client callback and i have a question.
> >
> >Assume the option "sorting" is set in a gridview.
> >Each time the user clicks on a fieldname, the data are sorted.
> >My question is: are the data on each click fetched from the server, or
are
> >they 'cached' on the client-side and so avoiding a lot of transferts
> >between server and browser?
> >If not 'cached', would it not bebetter to use the client callback
> >technology?
> >
> >Thanks for explanation
> >Chris
> >
>
> Sorting in gridview does cause a postback which resorts the data on
> the server, and resends it to the client. The data on the server can
> be Cached also.
>
> I do not know of a way to move the data to the client and have a
> javascript or sort it. I think you move out of GridView's when you do
> that.
> Peter Kellner
> http://peterkellner.net



Re: question about client callback and gridview by PeterKellner

PeterKellner
Thu Jun 29 17:03:46 CDT 2006

On Fri, 9 Jun 2006 13:52:58 +0200, "Chris" <sfdf@dffgf.ee> wrote:

>Thanks,
>
>Any reason they didn't implement the client callback technology in the
>gridview? It would be faster and less net traffic ...
>
When you sort gridview data, it may contains lots of rows that are now
downloaded. (assuming you are using paging). The sort is for all the
data, not just the displayed data.

That is, downloading all the data to the client for sorting might be
prohibitive.
Peter Kellner
http://peterkellner.net