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

Client binding - Webservice method called twice

3 Answers 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Enrico Foschi
Top achievements
Rank 2
Enrico Foschi asked on 22 Dec 2008, 03:30 PM
Hi all,

with the latest release, I am using Web services databinding for my data-grid.

What I can figure out using a basic net profiler (Firebug extension in Firefox), is that the webservice method to retrieve the data is called twice (with a consequent doubled load on the Web, Business logic and Database tiers).

I am using the basic code in the samples. Any work-around on that?

Thanks,
Enrico Foschi

3 Answers, 1 is accepted

Sort by
0
Yeroon
Top achievements
Rank 2
answered on 22 Dec 2008, 03:35 PM
Hi,

If you are using totals in the grid footer, than it is by design I think. It will go once for the databinding of the grid mastertable, and once again to get the totals.

Yeroon
0
Enrico Foschi
Top achievements
Rank 2
answered on 22 Dec 2008, 03:38 PM
Hi Yeroon.

Just figured out that the call:  set_currentPageIndex(pageIndex) was forcing the datagrid to re-bind again, so there was explained the issue (work-around to a previous version bug, fixed with the new dev release).

Thanks anyway!

0
Yeroon
Top achievements
Rank 2
answered on 22 Dec 2008, 03:40 PM
Glad you got it sorted!
Tags
Grid
Asked by
Enrico Foschi
Top achievements
Rank 2
Answers by
Yeroon
Top achievements
Rank 2
Enrico Foschi
Top achievements
Rank 2
Share this question
or