Sep 08, 2009, 6:08 AM
[CLOSED] Ext Button - Control - inside XTemplate
Hi all,
in the examples, about XTemplate there is no hint in adding an Ext control inside the template tag.
Is that possible? How can I add an Ext Button firing AjaxEvent per each row inside XTemplate?
I tried something like this, with no success.
Matteo
in the examples, about XTemplate there is no hint in adding an Ext control inside the template tag.
Is that possible? How can I add an Ext Button firing AjaxEvent per each row inside XTemplate?
I tried something like this, with no success.
...
<tpl for=".">
<div class="{[xindex % 2 === 0 ? "odd" : "even"]}">
<p>Name: {Name}</p>
<p>Url: {[values.UrlReport.toUpperCase()]}</p>
<p>
<ext:Button ID="Button2" runat="server" Text="Click Me">
<AjaxEvents>
<Click OnEvent="Button_Click">
<EventMask ShowMask="true" />
<ExtraParams>
<ext:Parameter Name="Item" Value="={Name}" />
</ExtraParams>
</Click>
</AjaxEvents>
</ext:Button>
</p>
<tpl if="[xcount - xindex] &gt; 0">
<hr />
</tpl>
</tpl>
...
Thanx a lotMatteo