1. #11
    Sencha User
    Join Date
    May 2013
    Posts
    1
    Vote Rating
    0
    Jimmy.d.zoro is on a distinguished road

      0  

    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
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    174
    Vote Rating
    41
    loiane has a spectacular aura about loiane has a spectacular aura about loiane has a spectacular aura about

      0  

    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
    732
    Vote Rating
    0
    franklt69 is on a distinguished road

      0  

    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
    732
    Vote Rating
    0
    franklt69 is on a distinguished road

      0  

    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 User
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    996
    Vote Rating
    49
    ssamayoa has a spectacular aura about ssamayoa has a spectacular aura about ssamayoa has a spectacular aura about

      0  

    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 2.x / ExtJS 4 MVC
    Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
    Application Server: Glassfish 3.1.x
    Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5

    If you like my answer please vote!