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

Get model for listview click event

$
0
0

Is there any way to retrieve the model that used to render the listitem?

For example, my model have 3 fields, A B and C. When I render the listitem, I just used bindId for A and B. I want to be able to get the C value when handling onClick event. However, if I use e.section.getItemAt(e.itemIndex), it only gives me the data that used to render the view, which is A and B in this case. I want to retrieve the model's data instead of only the ones that used for rendering the view.

Any thought on that? Thanks!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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