Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: How to add a click event in controller for Action Column Item using Architect?

  1. #11

    Default

    Quote Originally Posted by vitorvti View Post
    Worked for me, and thanks for the example. i was not getting the handler part, and then i found this

    In the Grid Panel i create a Custom Event with a parameter record;


    At then Action Column handler:


    handler: function(view, rowIndex, colIndex, item, e, record, row) {
    view.up('grid panels widget').fireEvent('My grid Custom Event',record);
    },

    at the Controller i created the listener and worked just fine.

    Regards
    Can you please share your scripts? I'm also working on similar case.

  2. #12

    Default

    Quote Originally Posted by Jimmy.d.zoro View Post
    Can you please share your scripts? I'm also working on similar case.
    Here is an example: http://loianegroner.com/2012/06/extj...-actioncolumn/
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

  3. #13
    Sencha User
    Join Date
    Mar 2007
    Posts
    792

    Default

    Hi Loanie, I am playing with you example ant it work ok in Sencha Architect 2.2.2 Build 991 but using in the library: Library Base Path= http://dev.sencha.com/deploy/ext-4.1.0-gpl/ if I changed it to
    http://cdn.sencha.com/ext/gpl/4.2.1/ it doesn't work, I mean I get error when I click on action columns,the same idea, with other examples, when I change the Library Path doesn't work, have Idea? Some plan to migrate it to lastest extjs version?

    regards
    Frank

  4. #14
    Sencha User
    Join Date
    Mar 2007
    Posts
    792

    Default

    Hi Loaine in the arrayGrid y found a solution to work with 4.2.1 I changed

    var rec = view.getStore().getAt(rowIndex);//view.getRecords(view.getNodes())[rowIndex];

    wil be good to update the filter example, I didn't find the reason that doesn't work

    regards
    Frank

  5. #15
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,560

    Default

    Quote Originally Posted by franklt69 View Post
    Hi Loaine in the arrayGrid y found a solution to work with 4.2.1 I changed

    var rec = view.getStore().getAt(rowIndex);//view.getRecords(view.getNodes())[rowIndex];
    Thats the way I did, look:

    http://www.sencha.com/forum/showthre...l=1#post822610

    The good part is that you were forced to look for solution

    Regards.
    UI: Sencha Architect / ExtJS 4 - 6
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: WildFly / Weblogic
    Databases: Oracle
    / MySQL / DB2 / Firebird

    If you like my answer please vote!

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •