Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid recalculates size if totalRows is missing in dsResponse

    I'm using SmartClientPro 8 stable version 2011-01-05.

    Determining totalRows of an sql query is an expensive operation. So I calculated totalRows only on the first paging request for a datasource (startRow = 0). On subsequent dsResponse I did not send totalRows. This worked fine in SC V7.

    In SC V8 this behavior changed. Now listGrid recalculates size if totalRows is missing in any dsResponse. Leading to a wrong size.

    Can you go back to the old behavior?

    Thanks

    burkhard

    #2
    Sorry, no plans to change this behavior - totalRows has always been a required part of the response with undefined behavior if its omitted.

    When totalRows is expensive to compute, we recommend the progressive loading approach described in the docs for ResultSet.

    As far as your existing approach, it is possible to cache the totalRows value you calculate either server-side or capture them client-side and re-use them (by implementing transformRequest and transformResponse for example).

    Comment

    Working...
    X