You can't assign image to acceptmatch
using e.row.image
.
According to your design acceptmatch
is the children of the acceptmatchView
, which is the children of your row
.
Your row
- > Children[0] - acceptmatchView
-> Children[0] - acceptmatch
So you can assign image to it like:
tableview.addEventListener('click', function(e) {
var imageView = e.row.children[0].children[0];
if(imageView.image == 'images/nomatch.png')
{
imageView.image = 'images/match.png';
}
else
{
imageView.image = 'images/nomatch.png';
}
});