PDA

View Full Version : List and PR3



robl
10 Dec 2011, 3:11 PM
I'm seeing strange behavior with List/Store in PR3. I am manually adding objects to the store (no proxy) but not all of the objects are being displayed in the List. I think the "paging" feature may be the culprit as I'm only seeing 5 entries out of 20 and the List can display 5 entries. I tried setting "buffered: false" in the store but that didn't fix it. Furthermore, if I do "grouped: true", it only shows 1 entry.

What's going on? Ideas please....

rdougan
11 Dec 2011, 11:57 PM
Could you please provide a test case so we can look into it?

robl
12 Dec 2011, 6:49 AM
Could you please provide a test case so we can look into it?

I'm working on it. I am in the middle of debugging but I can share some findings with you already...

There is a bug that is triggered in the "insert' method on the "Store" class when it fires the "add" event:


me.fireEvent('add', me, records, index);

Therefore this code NEVER gets executed:


me.fireEvent('datachanged', me);
if (me.autoSync && sync) {
me.sync();
}

As a result, the insert method never completes. This explains the missing entries. Not sure why yet.