You should be able to do it in two ways.
Either use a plain renderer:
{
text: 'Orjinal Fotoğraf',
flex: 1,
renderer: function ( aValue, aMetaData, aRecord ) {
return checkImageExist( path + aRecord.id + '_original.' + aRecord.fileExtension, this) ? '<a href="'+path+' + aRecord.id' +_original.' + aRecord.fileExtension + '" target="_blank"><img src="'+path+ aRecord.id + '.' + aRecord.fileExtension + '" height=100 width=100 /></a>' : 'noldu yaa';
}
Or user an Xtemplate, something roughly like this:
this.MyTpl = new Ext.XTemplate (
'<a href="'+path+'{id}_original.{fileExtension}" target="_blank"><img src="'+path+'{id}_original.{fileExtension}" height=100 width=100 /></a>[this.checkImageExist( values.url, values.d )]'
{
disableFormats: true,
checkImageExist: function ( aUrl, aD )
{
console.log( aUrl, aD );
var img = new Image();
img.src = aUrl;
return img.height != 0 ? '<a href="'+path+'{id}_original.{fileExtension}" target="_blank"><img src="'+path+'{id}.{fileExtension}" height=100 width=100 /></a>' : 'noldu yaa'
}
}
);