1. #21
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Beta2 is out.

    Changes:
    Code is now using XTemplate resulting in much shorter and cleaner code and better cross-browser compatibility.

    Enjoy!
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  2. #22
    Sencha Premium Member
    Join Date
    Apr 2007
    Location
    London, UK
    Posts
    50
    Vote Rating
    0
    Lucian is on a distinguished road

      0  

    Default


    Great job, Saki!...

    Sorry for that question , but what if I need to handle multiple events on a single icon?...
    No signature.

  3. #23
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    There is only one event (well two: beforeaction and action) for an icon. However, if you bind your icon (action) to the store you cannot say in advance what iconCls (action) it gets. In that case:
    PHP Code:
    actionEventHanler = function(gridrecordactionvaluerowcol) {
        switch(
    action) {
            case 
    'icon-save':
                
    // ...
            
    break;

            case 
    'icon-load':
                
    // ...
            
    break;

            
    // ...
        


    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  4. #24
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Analyzing the example at http://cellactions.extjs.eu should also help you. Event handler just popup toast windows but it is in.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  5. #25
    Sencha User
    Join Date
    Nov 2007
    Location
    London, UK
    Posts
    583
    Vote Rating
    -1
    mabello is an unknown quantity at this point

      0  

    Default Well done!

    Well done!


    Dear jsakalos,

    I have not used the plugin yet, but I've checked the code and it's simple and clear, very nice idea. Thanks for sharing.
    Regards
    Marco

  6. #26
    Ext User border9's Avatar
    Join Date
    Aug 2007
    Posts
    269
    Vote Rating
    0
    border9 is on a distinguished road

      0  

    Default


    im having a little bit of an issue with this plugin on more then one grid inside of a tabbed system.

    this.view.mainBody has no properties
    Line 186

    this.view.mainBody.on(cfg);

    This happens when i try to put this plugin on more then one Grid inside of a Tabbing system. Any ideas?

    I have:
    Code:
    var truckloadGrid = new Ext.grid.GridPanel({
       loadMask: true,
       ds: truckloadStore,
       sm: sm2,
       columns: [
          sm2,
         {header: "Num #", 
        width: 8, 
        sortable: true, 
        renderer:  function(quote) {
          return '<a href="php/quotes/admin_truckloadquotes.php?id=' + quote + '" target="truckloadquote">' + quote + '</a>';
         }},
         {header: "First / Last Name",
            width: 22 ,
            renderer: function(value, metadata, record) {
            return String.format("{0} {1}", record.data.fname, record.data.lname);
           }
          },
         {header: "Phone Number", width: 22 , sortable: true, dataIndex: 'phonenum'},
         {header: "Email Address", width: 22, dataIndex: 'email' },
         {header: "Date Time Recieved", width: 17 , sortable: true, renderer: Ext.util.Format.dateRenderer('Y-m-d h:i:s a'), dataIndex: 'timerecieved'},
         {header: "Customer Type", width: 22, dataIndex: 'customertype' },
      {header: "Site Recieved From", width: 22, dataIndex: 'websitesubmit' },
         {header: "Admin", width: 8 , dataIndex: 'delquote' ,cellActions:[{
                                                    iconCls:'icon-plus',
                                                    qtip:'Update Quote',
                                                    style:'background-color:#f0f0f0;'
                                            },{
                                                    iconCls:'icon-minus',
                                                    qtip:'Delete Quote'
                                             }]}
             ],
         stripeRows: true,
         autoHeight: false,
         viewConfig: {
         forceFit: true
         },
         border: false,
         bbar: new Ext.PagingToolbar({
               pageSize: 20,
               store: truckloadStore,
               displayInfo: true,
               displayMsg: 'Displaying Quotes {0} - {1} of {2}',
               emptyMsg: "No Quotes to display"
        }),
        plugins:[new Ext.ux.grid.Search({
                 mode:'local'
                ,iconCls:false
                ,dateFormat:'Y-m-d H:i:s'
                ,minLength:2
                ,align:'left'
            }), this.cellActions, checkColumn2]
    });
    3 Grids that look like this slightly diffrent depending on the fields needed.

  7. #27
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Please re-download and let me know it it works. I haven't changed version yet but zip file is patched.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  8. #28
    Ext User border9's Avatar
    Join Date
    Aug 2007
    Posts
    269
    Vote Rating
    0
    border9 is on a distinguished road

      0  

    Default


    I reinstalled with the patched one and its still throwing the same error.

    Right know it works on 2, but not on anymore then 2 grids in a Tabbing system, when you try to do it on 2+ is when it throws the error, so right now im just leaving it out of the other 4 tabs until the error is resolved. Thanks ill keep an eye out on here for a fix.

  9. #29
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I cannot fix it more as now the event is installed latest it can be: from grid.afterRender function sequence. Do you lazy instantiate your grids? Any simplified copy&paste&run showcase?
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  10. #30
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    One more remark: Any colliding ids?
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM