Announcement

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

    "Showcase->Features Samples->Live Grid" behavior

    Hi,

    In the LiveGrid sample:

    Showcase->Featured Samples->Live Grid

    The dataURL comes from
    http://www.smartclient.com/smartgwt/showcase/ds/test_data/supplyItem.data.xml
    which include 685 records.

    I found the data file, supplyItem.data.xml, will only be fetched once and
    all 685 records will cross the network at one time (I check this by using
    Firebug, only one "+GET http://www.smartclient.com/..." log in Firebug's Console).

    Is this normal behavior of LiveGrid ?

    I expected that when the LiveGrid scrolling, the data will be fetched
    one page at a time but that's not the behavior I found in LiveGrid sample.

    Does LiveGrid behavior required all data ready somewhere in Browser ?
    How can I ask LiveGrid only fetch couple data when user scolling (one page at one time) ?
    Thanks a lot.


    Regards
    KC

    #2
    The example is constructed that way, using what is called a clientOnly DataSource, because the examples need to run without any server code. If you want to watch the LiveGrid behavior in action, you can look at the corresponding SmartClient example to see it.

    The RestDataSource docs describe the parameters which are sent to the server to enable LiveGrid-style paging.

    Comment


      #3
      Thanks for reply.
      So, can I make the following conclusion ?
      For paging isuue,
      DataSource require all data been fetched into browser.
      We need RestDataSource to fetch data from server one
      page at one time ?

      Regards,
      KC

      Comment


        #4
        No, that is also incorrect. The only DataSource that requires data to be loaded in advance in a clientOnly DataSource. All other types of DataSources either send requests for data that include paging information by default (startRow / endRow) or can be configured to do so.

        Comment


          #5
          OK, thanks to point that out.
          I will check the document before asking more question. I did not
          catch the big picture of DataSource yet ... :-(

          Regards
          KC

          Comment

          Working...
          X