View Full Version : Add radiogroup to a template

6 Mar 2010, 3:42 AM
Hi all!

I would add a radio group to a template, i.e. i have a list of messages, and for each of them I'd like to provide a form with radio group to rate the message. Here's the code:

var tplAnsw = new Ext.XTemplate(
'<tpl for=".">',
'<tpl for="msg" if="msg">',
'<div class="tpl-msg">',
'<td width="400px"><div class="panel-head">{#}) date: </div><div class="panel-text">{msg_date} {msg_hour}</div></td>',
'<td><tpl if="rate!=null"><div class="panel-head">Rate: </div><div class="panel-text">{rate}</div></tpl></td>',
'<div class="panel-msg-text">{msg_text}</div>',

'<div class="x-column-layout-ct">',

// how can I add a form with radiogroup here?



Can anyone help me? Thanks in advance!