PDA

View Full Version : To add EXTJS-Text Field inside HTML Table ?.....



sam.arulprakash
3 Jun 2010, 10:23 PM
Hi all,

I am in need to add text-field into html table.
I have tried with two option
1)apply to--------
2)renderTo.......
But i am not able to achieve it.
what are all the things i need to do?..Please help me



Thanks in Advance.
Regards,
Arul Prakash.M


<table id="Table1" runat="server" style="position:relative;" border="1">
<tr>
<td>
-------Here Ext Js Text Field Script --------
var objText = new Ext.form.TextField
(
{

applyto: 'PhrsTable' //renderTo: document.body
});
</td>
</tr>
</table>

gevik
4 Jun 2010, 1:40 AM
Study the following code:



<script>
var objText = new Ext.form.TextField(
{
id:'objText',
value:'some value',
renderTo:'myTD'
});

</script>



<table id="Table1" runat="server" style="position:relative;"border="1">
<tr>
<td id="myTD">
</td>
</tr>
</table>

If you are using ASP.NET, you might be better off using http://www.coolite.com (http://www.coolite.com/)

sam.arulprakash
4 Jun 2010, 2:38 AM
Thanks Gevik....For your valuable reply.

Your code working fine now.

Regards,
Arul Prakash.M