Extracting state from a listview
-
Hello, I have a listview with 15 items, and two different states. I would like to know the state of the listelement which is in use(onclicked event). How do I determine this. I tried the following
@
var n = model.get(index).Name
console.log(n.state)@
I get answer as "undefined."
-
Try model.get(index).state
-
Nope.. the result is the same "undefined".
-
Are the event catched in the delegate ? Then you can use directly state.
If you are in the view, it should work.... -
unfortunately that does not get cached..
-
Please post some code....
-
Can you please post your code. So that the other people can also give it a try...