Results 1 to 2 of 2

Thread: is it possible to create grid object in items?

  1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    46
    Vote Rating
    0
      0  

    Default is it possible to create grid object in items?

    Hi,

    what i want to know is,It is possible to create grid object in the items attribute?

    example code:
    Code:
                                      /* here */ --->    xtype:'editorgrid', /*--i want to specify like
                                                          /*    var grid = new Ext.grid.EditorGridpanel()*/
                    		       store: store_inter,
    				       cm: cm_interass,
    				       id : 'inter_association',
    					//buttonAlign:'center',
    					viewConfig: {
    						forceFit:true
    					  },
    					 width:1180,
    					height:200,
    					collapsible: false,
    					autoScroll: true,
    					 monitorResize: true,
    					 frame:true,
    					bbar : new Ext.PagingToolbar({
    					displayInfo: true,
    					pageSize : 20,
    					store: store_inter
    					}),
    					buttons: [{
    					      		text: 'Add',
    						          id : 'inter_add',
    						        handler : function() {
    							   	select_inter();
    						          }  	
    						          },{
    						            text: 'Remove',
    						id : 'inter_remove'
    						        
    						}]
    Thanks,
    sathishs

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    You can specify items as config objects (with xtype) or as component objects, so both:

    Code:
    items: [{
      xtype: 'editorgrid', 
      ...
    }, ...]
    and

    Code:
    var grid = new Ext.gridEditorGrid({
      ...
    });
    
    items: [grid, ...]
    are valid.

Posting Permissions

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