Page 48 of 97 FirstFirst ... 38464748495058 ... LastLast
Results 471 to 480 of 965

Thread: [1.0] Grid RowActions Plugin

  1. #471
    Ext User
    Join Date
    Aug 2008
    Posts
    11
    Vote Rating
    0
      0  

    Default

    Hi

    I have downloaded rowactions. I think the plugin looks great!

    However I would like to use it with "livesearch plugin".

    The code where my headers is created looks like this

    Code:
    function createGrid()
        {
            grid = new xg.GridPanel(
            {
                store: ds, // use the datasource
                
                cm: new xg.ColumnModel(
                    [
                        expander,
                        {id:'varenr',header: "Vare nr.",  sortable: true, dataIndex: 'varenr'},
                        {id:'navn',header: "Vare",  sortable: true, dataIndex: 'navn'},
                        {id:'pris',header: "Pris",  sortable: true, dataIndex: 'pris'}
                    ]),
                
                viewConfig:
                {
                    forceFit:true
                },
                
                plugins: expander,
                collapsible: true,
                animCollapse: false,
            
                width:"100%",
                stripeRows:true,
                title:'Search results',
                iconCls:'icon-grid',
                renderTo: "gridWrapper",
                autoHeight:true
                
            });
        }
    How do I add rowactions to that?

  2. #472
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    To both column model and plugins.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  3. #473
    Ext User
    Join Date
    Aug 2008
    Posts
    11
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by jsakalos View Post
    To both column model and plugins.
    Hi jsakalos

    Thank you for your fast response

    I've tried to add the class, but if I leave out "dataIndex:" I get an error when I search the livegrid.

    Here is the code I tried out

    Code:
    // rowexpander
        Ext.BLANK_IMAGE_URL = 'js/extjs/resources/images/default/s.gif';
        Ext.QuickTips.init();
    
            var action = new Ext.ux.grid.RowActions({
                          header:'Action',
                         actions:
                         [
                             {
                                iconCls:'icon-run',
                                iconIndex:'runAction',
                                qtipIndex:'runQtip'
                            }
                        ]
                    });
        
        // ----------------
        //    Create grid
        // ----------------    
        function createGrid()
        {
            grid = new xg.GridPanel(
            {
                store: ds, // use the datasource
                
                cm: new xg.ColumnModel(
                    [
                        expander,
                        {id:'varenr',header: "Item no.",  sortable: true, dataIndex: 'varenr'},
                        {id:'navn',header: "Description",  sortable: true, dataIndex: 'navn'},
                        {id:'pris',header: "Price",  sortable: true, dataIndex: 'pris'},
                        action
                    ]),
                
                viewConfig:
                {
                    forceFit:true
                },
                
                plugins: expander,
                collapsible: true,
                animCollapse: false,
            
                width:"100%",
                stripeRows:true,
                title:'Search results',
                iconCls:'icon-grid',
                renderTo: "gridWrapper",
                autoHeight:true
                
            });
        }
    When I run the page I get following error

    this.ds.fields.get(i) is undefined
    ext-all-debug.js Line 32949

    The page can be seen here: http://multipumpen.dk/erp/

    Error occurs when text is entered in LiveSearch

  4. #474
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    Take a look at the documentation in the source code. Some combinations are invalid.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  5. #475
    Ext User
    Join Date
    Feb 2009
    Posts
    2
    Vote Rating
    0
      0  

    Default rowActions ok with CheckboxSelectionModel?

    Saki,

    I'm a bit new to ext, and in using your rowActions plugin, everything works fine for me until I try to utilize a CheckboxSelectionModel instead of RowSelectionModel. The grid then errors during initialization. Any ideas? Perhaps I should post an example...I'll work one up.

    Thanks,

    Fred

  6. #476
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    Is your plugins config option an array? If yes, then it's sth else - need some code to look at.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  7. #477
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    720
    Vote Rating
    36
      0  

    Default

    Hi,

    i have problem stop the event when click the action. I have a grid with handler on rowselectionmodel.rowselect...

    This event should not fire, when clicking the action icons.

    What is the right way to stop the events (rowselect, rowclick) when an action item is clicked?

    Bye, Dumbledore

  8. #478
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    I've right now updated RowActions with new config option keepSelection. See http://extjs.eu/docs/?class=Ext.ux.g...=keepSelection for more details.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  9. #479
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    720
    Vote Rating
    36
      0  

    Default

    nice, thanks a lot...

  10. #480
    Ext User
    Join Date
    Feb 2009
    Posts
    2
    Vote Rating
    0
      0  

    Default No rowAction problem

    Saki,

    Figured it out, sorry about that.

    Thanks.

Page 48 of 97 FirstFirst ... 38464748495058 ... LastLast

Posting Permissions

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