[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.
Code:
...
<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 lot
Matteo
RE: [CLOSED] Ext Button - Control - inside XTemplate
Hi,
At this moment it is not possible. In 1.0 version we will include the ability to have control inside row expander (but row expander can has single expanded row because control is shared between all rows) or you can dynamically create row content (with Coolite controls) using AjaxEvent
It is not so trivial task therefore I can't get any clues how it is implement with 0.8 version.
RE: [CLOSED] Ext Button - Control - inside XTemplate
Hi Vlad,
ok thank you.
I was trying a tricky way by setting CustomAjaxEvents per a single row input button html element, but does not work.
Code:
<CustomAjaxEvents>
<ext:AjaxEvent Target="${E[foo=foovalue]}" OnEvent="Button_Click">
</ext:AjaxEvent>
</CustomAjaxEvents>
Thanx
Matteo
RE: [CLOSED] Ext Button - Control - inside XTemplate
Hi,
You can use simple html button inside template which will call ajax method
RE: [CLOSED] Ext Button - Control - inside XTemplate
Hi Vlad,
yes right, I'll try it.
Thanx
Matteo