[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.
    Vladimir Shcheglov
    Sr. Developer
  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
    Vladimir Shcheglov
    Sr. Developer
  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, 12:59 PM
  2. Replies: 8
    Last Post: Sep 28, 2012, 3:42 PM
  3. Replies: 2
    Last Post: Feb 06, 2012, 10:06 AM
  4. [CLOSED] [1.0]Button control inside gridpanel cell
    By edigital in forum 1.x Premium Help
    Replies: 1
    Last Post: Sep 29, 2010, 12:43 PM
  5. Replies: 1
    Last Post: Mar 09, 2010, 3:55 AM

Posting Permissions