Results 1 to 3 of 3

Thread: Grid - Check Column Plugin / Search Plugin - Disables Other Plugin

  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2007
    Posts
    183
    Answers
    7

    Question Grid - Check Column Plugin / Search Plugin - Disables Other Plugin

    Hello,
    I have a grid that I've created with a check column plugin and I'm trying to add the grid search plugin. It disables the check column plugin when I have both of them at the same time. Multiple plugins at once was causing a problem.

    Code:
     grid = new Ext.grid.EditorGridPanel({
     //Code Attributes for the grid would be here
             plugins:this.checkColumn,
    			
    	//new Ext.ux.grid.Search({
    	plugins:new Ext.ux.grid.Search({
    	iconCls:'find'
    	,readonlyIndexes:['']
    	,disableIndexes:['']
    	,minChars:3
    
    }),
    Thanks for the suggestions!
    Last edited by fuzelogic; 10 Sep 2008 at 6:10 AM. Reason: update title

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Answers
    512

    Default

    plugins config option takes array of plugins. You can use something like this:
    PHP Code:

    plugins
    :[this.checkColumn, new Ext.ux.grid.Search({...}), someAnotherPlugin
    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. #3
    Ext JS Premium Member
    Join Date
    Oct 2007
    Posts
    183
    Answers
    7

    Default Fixed - Updated Code Example

    Code:
      grid = new Ext.grid.EditorGridPanel({ 
                renderTo: 'customer-grid',
    	    id: 'cust-grid',
     	    iconCls: 'icon-grid',
                store: myDataStore,       
                colModel: getColumnModel(),
                selModel: new Ext.grid.RowSelectionModel({singleSelect:false}),
                height:625,
    	    width:900,
                title:'My Grid Title',
                clicksToEdit:2,//number of clicks to activate cell editor, default = 2
    
                plugins:[this.checkColumn,
    			
    	     new Ext.ux.grid.Search({
    		    iconCls:'find'
    		    ,readonlyIndexes:['']
    		    ,disableIndexes:['']
    		    ,minChars:3
    		    //,autoFocus:true
    		    //,menuStyle:'radio'
    	    })]

Posting Permissions

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