Announcement

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

    bug in nightly - adding new row to empty ListGrid calls fetchData

    Hi,

    Calling startEditingRow on an empty ListGrid makes ListGrid populate with full dataSource content by calling fetchData without any filter.

    I think that it is a problem with initializing ListGrid.data.

    Code:
    lg = ListGrid.create({ dataSource: myDataSource });
    var b = Button.create({ click: "lg.startEditingNew()" });
    
    lg.show();
    b.show();
    expected result: new row with editors added to ListGrid

    current result: new row with editors added to ListGrid and filling ListGrid with unfiltered dataSource contents

    Best regards,
    Janusz

    #2
    What exact version?

    Is it reproducible in a Showcase sample? By adding what code?

    Comment


      #3
      2010-06-03

      Code:
      DataSource.create({
      ID: "myDataSource",
      clientOnly:true,
      fields: [{name: "myField"}],
      testData: [ {myField: "a"}, {myField: "b"}, {myField: "c"}, {myField: "d"}, {myField: "e"}, {myField: "f"}]
      });
      
      
      var lg = ListGrid.create({ dataSource: myDataSource });
      var b = Button.create({ click: "lg.startEditingNew()" });
      
      lg.show();
      b.show();
      Here is working test case - just copy, paste and press "Untitled button".

      Comment


        #4
        We've added a fix for this - take a look at the next nightly build

        Comment

        Working...
        X