Results 1 to 3 of 3

Thread: [FIXED][3.x] Record auto id

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    8
      0  

    Default [FIXED][3.x] Record auto id

    Seems a static id is being assigned to records, overwriting all previous records, so only one record will show up in grids at the moment. Check any example, say array grid.

    Code:
    Ext.data.Record.id = function(rec) {
    	rec.phantom = true;
    	return [Ext.data.Record.PREFIX, '-', Ext.data.Record.AUTO_ID].join('');
    }

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    OK, you've found it problem yourself.

    IMHO this should have been:
    Code:
    Ext.data.Record.id = function(rec) {
    	rec.phantom = true;
    	return [Ext.data.Record.PREFIX, '-', Ext.data.Record.AUTO_ID++].join('');
    }

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,377
    Vote Rating
    858
      0  

    Default

    Fixed.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Posting Permissions

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