Results 1 to 1 of 1

Thread: Add radiogroup to a template

  1. #1

    Cool Add radiogroup to a template

    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:

    Code:
    var tplAnsw = new Ext.XTemplate(
    '<tpl for=".">',
    '<tpl for="msg" if="msg">',
    	'<div class="tpl-msg">',
    	'<table><tr>',
    	'<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>',
    	'</tr></table>',
      '<div class="panel-msg-text">{msg_text}</div>',
    		
    	'<div class="x-column-layout-ct">',
    	
    	// how can I add a form with radiogroup here?
    	
    	'</div>',
    	
    	
    	'<hr/>',
    '</tpl>',	
    '</tpl>'
    );
    Can anyone help me? Thanks in advance!
    Last edited by michitra; 6 Mar 2010 at 3:44 AM. Reason: forget something

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •