Client binding - Webservice method called twice

4 posts, 0 answers
  1. Enrico Foschi
    Enrico Foschi avatar
    12 posts
    Member since:
    Dec 2008

    Posted 22 Dec 2008 Link to this post

    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
  2. Yeroon
    Yeroon avatar
    87 posts
    Member since:
    Oct 2012

    Posted 22 Dec 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Enrico Foschi
    Enrico Foschi avatar
    12 posts
    Member since:
    Dec 2008

    Posted 22 Dec 2008 Link to this post

    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!

  5. Yeroon
    Yeroon avatar
    87 posts
    Member since:
    Oct 2012

    Posted 22 Dec 2008 Link to this post

    Glad you got it sorted!
Back to Top