1. #1
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    1
    Riaz is on a distinguished road

      0  

    Default Button on XTemplate

    Button on XTemplate


    Is it possible to add button on XTemplate?

  2. #2
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    1
    Riaz is on a distinguished road

      0  

    Default


    I am trying to add button on the XTemplate, but it is not working. Is there any sample example?

    Code:
    SubProjectTemplate = new Ext.XTemplate(
        "<form class='contact-detail-form'>",
            "<fieldset>",
                '<tpl for=".">',
                '<h4>Project Details: </h4>',
                   : //  wanted to add button here

  3. #3
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    1
    Riaz is on a distinguished road

      0  

    Default




    May be I am trying in wrong way. In List and Dataview, it is possible.

    What about in the Panel which is wrap with XTemplate?

  4. #4
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    1
    Riaz is on a distinguished road

      0  

    Default


    I have tried different ways and it is not working. I think there is a limitation.

  5. #5
    Sencha User
    Join Date
    Mar 2012
    Location
    India
    Posts
    45
    Vote Rating
    0
    prakash.fs is on a distinguished road

      0  

    Default


    You can add button on XTemplate.
    i used following code. Its working fine for me..
    Code:
    <input type="button" name="name" class="css" value="someValue" onclick="return false" >
    Good Luck..

Similar Threads

  1. handler to button in Ext.XTemplate
    By loadbrain in forum Ext 2.x: Help & Discussion
    Replies: 14
    Last Post: 28 Oct 2012, 7:27 PM
  2. Insert button into XTemplate
    By omphe in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 14 Dec 2010, 6:19 AM
  3. Ext.Button XTemplate
    By gianpaulo in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 18 Jul 2010, 12:01 AM
  4. [SOLVED] Ext.Button inside Ext.XTemplate
    By cmantilla in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 4 Jul 2009, 8:06 PM

Thread Participants: 1