Results 1 to 5 of 5

Thread: Grid not showing all the data

  1. #1
    Ext User
    Join Date
    May 2007
    Posts
    69

    Default Grid not showing all the data

    Is there a reason why a grid may not show all the data returned to it (via xml)?


    when the grid loads it only loads 9.
    when i click forward for pagination it loads 10
    next click forward loads 16
    next click forward loads 20
    next click forward is 21


    why would this be happening? The xml i am loading in has 25 records each time ( i double checked) The baseparam for limit is 25.

    What should i be checking for?

    Am i messing something up with the datasource by performing the following upon datasource load?

    Code:
    function getgridIds() {
    var recordCount = ds.getCount();
              	rows = ds.getRange(0,recordCount);
             	var BeginId = rows[0].id
    		var EndId = rows[recordCount-1].id
            
    		ds.baseParams = { 'endid': EndId, 
    							'startid': BeginId
    							};
    };

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854

    Default

    Look at the outgoing request in Firebug to see what parms actually being passed and then what your server code is seeing.

  3. #3
    Ext User
    Join Date
    May 2007
    Posts
    69

    Default

    that's the strange thing...the post is correct and the response (xml) has all the info that the grid should be loading (but it's not). It's so wierd..i'm using ext 1.1 beta1. Any chance of it being a bug?

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854

    Default

    Well seeing as that's multiple releases old, I would certainly update to the 1.1 final release before spending time chasing a possible fixed issue.

  5. #5
    Ext User
    Join Date
    May 2007
    Posts
    69

    Default

    Updated to 1.1 and still getting the same problem. The only difference is that I'm not using the start value the grid sends in the post. I created my own start value (unique id) that i use. This shouldn't matter though, because the resultset coming back to the grid is accurate. Shouldn't the grid simply load the data?

    Any ideas?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •