Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ListView - Delete Item from the section while searching

$
0
0

Problem : I have integrated search bar with the listview, we find some problem on search result when we delete the item from the section.

Current Development: On Long Press Event of listview:

var iItemIndex = e.itemId; // iItemIndex is absolutely correct while searching 
            var iSectionIndex = e.sectionIndex; // iSectionIndex is absolutely correct while searching 
 
            MyListView.sections[iSectionIndex].deleteItemsAt(iItemIndex, 1); //this is generate exception, only with search result. otherwise working fine.
Note : iItemIndex and iSectionIndex are correct, we find it in alerts. alert code not in above code block.

I am using alloy framework and my titanium sdk version is 3.2.0 GA.

Any help will be appreciated.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>