Jump to content

UniMDBListGrid XTemplate values from store


ice

Recommended Posts

Hi,

i am testing XTemplate in unimDBListGrid and i have problem with get values from store.

i think the problem is the fieldname are numbers ?

my Code in unievents:

 

function beforeInit(sender, config)
{   
   var itemTpl1 = new Ext.XTemplate(
   '<div>'+
   '<t>{0} </t>'+
   '<tpl for=".">'+
      '<tpl if="this.isA(values)">'+
         '<p>A: {1}</p>'+
      '<tpl else>'+
         '<p>B: {1}</p>'+
      '</tpl>'+
   '</tpl>'+
   '</div>',
   {
   isA: function(values){   
      return  values.2 > 250; <- problem
      }
   }
   );

   config.itemTpl = itemTpl1;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...