Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2012
    Location
    hyderabad
    Posts
    9

    How Pagination Works in DynaGrid

    HI all,
    I'm very new to Lightstreamer APIs.
    Any one please explain me how pagination works in DynaGrid .
    I've 15 records in my DynaGrid(Abstract widget) and i want to display 5 records in each page. So, following is the code
    Code:
    var dynaGrid = new DynaGrid("stocks",true);
        var cellList = dynaGrid.extractFieldList()
        
        dynaGrid.setSort("stock_name");
        dynaGrid.setNodeTypes(["div","span","img","a"]);
        dynaGrid.setAutoCleanBehavior(true, false);
        dynaGrid.setMaxDynaRows(5);
    This successfully divided my grid into 3 pages. The first page is working fine but when i am moving to second page or third page they are not displaying the other 10 records, they are only showing some of (4 or 3) records in the first page.

    Am I missing something??

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    You are not missing anything, but actually there is a bug in the goToPage function of DynaGrid.


    Please find here:

    http://www.lightstreamer.com/demo/co...ghtstreamer.js

    a fixed version of JS library.

    Thanks for the tip.

  3. #3
    Member
    Join Date
    Apr 2012
    Location
    hyderabad
    Posts
    9
    Hi,
    Thank you, It fixed my issue.

 

 

Similar Threads

  1. LS table how it works
    By betasec in forum Client SDKs
    Replies: 1
    Last Post: February 21st, 2011, 11:03 AM
  2. Replies: 1
    Last Post: July 3rd, 2009, 09:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:05 AM.