Answered by:
Scroll grouped listview, crash

Question
-
Hi All,
I have a grouped listview, if there are much items, it will crash while scroll it many times.
the error thrown from function getClassName, I find that the "e" is null, so e.className failed.
functiongetClassName(e){
varname = e.className || "";
.....
Get the call stack as below, anyone can help this? Thanks.
getClassName [base.js] Line 3324 Script
removeClass [base.js] Line 3980 Script
_clearFocusRectangle [ui.js] Line 23784 Script
ListView_unsetFocusOnItem [ui.js] Line 22039 Script
Anonymous function [ui.js] Line 25075 Script
ItemsContainer_each [ui.js] Line 19941 Script
ScrollView_addItemsToPool [ui.js] Line 25072 Script
Anonymous function [ui.js] Line 25505 Script
CompletePromise_then [base.js] Line 1790 Script
Anonymous function [ui.js] Line 25491 Script
CompletePromise_then [base.js] Line 1790 Script
Anonymous function [ui.js] Line 25468 Script
CompletePromise_then [base.js] Line 1790 Script
ScrollView_realizePage [ui.js] Line 25431 Script
ScrollView_onScroll [ui.js] Line 25622 Script
ListView_checkScroller [ui.js] Line 23059 ScriptFriday, October 26, 2012 7:13 AM
Answers
-
I changed our design, but it appears to have been caused when I updated a listviews indexOfFirstVisible attribute. My guess is it wasn't rendered by the time I was trying to scroll to that position. Good Luck.
- Marked as answer by Song Tian Friday, November 9, 2012 6:15 AM
Thursday, November 1, 2012 7:27 PM
All replies
-
I am currently having this same issue. Did you make any progress?Monday, October 29, 2012 4:46 PM
-
No any progress till now, it is strange that no MS dev reply my question.Tuesday, October 30, 2012 3:38 AM
-
Ya and I'm suprised there haven't been anymore people with this problem either, But Ill keep you updated if I find any solutions.Tuesday, October 30, 2012 4:36 PM
-
I changed our design, but it appears to have been caused when I updated a listviews indexOfFirstVisible attribute. My guess is it wasn't rendered by the time I was trying to scroll to that position. Good Luck.
- Marked as answer by Song Tian Friday, November 9, 2012 6:15 AM
Thursday, November 1, 2012 7:27 PM -