[CLOSED] Ext Button - Control - inside XTemplate

  1. #1

    [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.

    
    ...
    
    <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] &amp;gt; 0">
                            <hr />
                        </tpl>
                    
    
                </tpl>
    
    ...
    Thanx a lot

    Matteo


  2. #2

    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.
  3. #3

    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.

    
    <CustomAjaxEvents>
                <ext:AjaxEvent Target="${E[foo=foovalue]}" OnEvent="Button_Click">
                </ext:AjaxEvent>
    </CustomAjaxEvents>
    Thanx

    Matteo
  4. #4

    RE: [CLOSED] Ext Button - Control - inside XTemplate

    Hi,

    You can use simple html button inside template which will call ajax method
  5. #5

    RE: [CLOSED] Ext Button - Control - inside XTemplate

    Hi Vlad,

    yes right, I'll try it.

    Thanx

    Matteo

Similar Threads

  1. Replies: 7
    Last Post: Jan 29, 2013, 11:59 AM
  2. Replies: 8
    Last Post: Sep 28, 2012, 2:42 PM
  3. Replies: 2
    Last Post: Feb 06, 2012, 9:06 AM
  4. [CLOSED] [1.0]Button control inside gridpanel cell
    By edigital in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 29, 2010, 11:43 AM
  5. Replies: 1
    Last Post: Mar 09, 2010, 2:55 AM

Posting Permissions