PDA

View Full Version : Ext Template if condition not working



priyapratheep
26 Sep 2013, 2:44 AM
tpl : new Ext.Template(
'<tpl if="{isCommentable} == true">{qnNum}</tpl>'
),


The above code is not working. isCommentable is from Ext.data.Record is a boolean value.

Do you know why the if condition in template is working

willigogs
26 Sep 2013, 5:10 AM
Try:


'<tpl if="isCommentable">{qnNum}</tpl>'

priyapratheep
26 Sep 2013, 7:30 PM
Thanks willigogs (http://www.sencha.com/forum/member.php?235243-willigogs) , unfortunately it is not working .. Is there any other way ?

priyapratheep
26 Sep 2013, 8:12 PM
WORKING...


I changed to

Ext.XTemplate from Ext.Template