Extjs Grid - Click event listener
Ensure that
- Your property name is really lowercase 'name' and not 'Name'
- Print the value of the field into the console with
console.log(record.get('name'))
or use the direct access by typingconsole.log(record.data.name)
orconsole.log(record.data['name'])
. Basically all should return the same. - To cast a value to string apply
''
on the fly likevar myVar = 2; myVar = myVar + ''; // now print 20 as string