Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    19
    Vote Rating
    1
    dietmar is on a distinguished road

      1  

    Default ComboBox using Grid instead of BoundList

    ComboBox using Grid instead of BoundList


    It would be nice to use a Grid instead of simple BoundList to render the ComboBox picker. This is currently not possible.

    I currently use the following code to implement that feature. Maybe it is possible to integrate that into the standard ComboBox in future releases?

    Code:
    Ext.define('PVE.form.ComboGrid', {
        extend: 'Ext.form.ComboBox',
        requires: [
    	'Ext.grid.Panel'
        ],
        alias: ['widget.PVE.form.ComboGrid'],
    
        // copied from ComboBox 
        createPicker: function() {
            var me = this,
            picker,
            menuCls = Ext.baseCSSPrefix + 'menu',
            opts = Ext.apply({
                selModel: {
                    mode: me.multiSelect ? 'SIMPLE' : 'SINGLE'
                },
                floating: true,
                hidden: true,
                ownerCt: me.ownerCt,
                cls: me.el.up('.' + menuCls) ? menuCls : '',
                store: me.store,
                displayField: me.displayField,
                focusOnToFront: false,
                pageSize: me.pageSize
            }, me.listConfig, me.defaultListConfig);
    
    	// NOTE: we simply use a grid panel
            //picker = me.picker = Ext.create('Ext.view.BoundList', opts);
    	picker = me.picker = Ext.create('Ext.grid.Panel', opts);
    
    	// hack: pass getNode() to the view
    	picker.getNode = function() {
    	    picker.getView().getNode(arguments);
    	};
    
            me.mon(picker, {
                itemclick: me.onItemClick,
                refresh: me.onListRefresh,
                scope: me
            });
    
            me.mon(picker.getSelectionModel(), {
                selectionChange: me.onListSelectionChange,
                scope: me
            });
    
            return picker;
        }
    });

  2. #2
    Sencha User
    Join Date
    Jun 2010
    Posts
    31
    Vote Rating
    0
    nailuo is on a distinguished road

      0  

    Default


    how use it??? and can tree in it?? how ?thank you very much

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    19
    Vote Rating
    1
    dietmar is on a distinguished road

      0  

    Red face


    Quote Originally Posted by nailuo View Post
    how use it??? and can tree in it?? how ?thank you very much
    Just use it like a normal ComboBox - pass grid options in 'listConfig', for example:

    Code:
    { 
        xtype: 'PVE.form.ComboGrid',
        valueField: 'name',
        displayField: 'name',
        store: yourstore,
        listConfig: {
           columns: [
               {
               header: 'Name',
               dataIndex: 'name',
               }
           ]
        }
    }

  4. #4
    Sencha User atian25's Avatar
    Join Date
    Oct 2008
    Location
    china
    Posts
    114
    Vote Rating
    2
    atian25 is on a distinguished road

      0  

    Default


    should post as an extension.
    so by this way, combotree is coming
    @from: china
    @web: http://atian25.iteye.com
    @extensions: (extjs 4.x)
    * Ext.ux.grid.plugin.RowEditing - add some usefull features (v1.4 updated 2011-09-11)
    * Ext.ux.button.AutoRefresher
    * Ext.ux.form.field.DateTime

  5. #5
    Sencha User
    Join Date
    Jun 2010
    Posts
    31
    Vote Rating
    0
    nailuo is on a distinguished road

      0  

    Default


    how tree in it?????? i try it by your way.... but hava many errors ..............can you help me ,please

  6. #6
    Sencha User
    Join Date
    Mar 2010
    Posts
    19
    Vote Rating
    1
    dietmar is on a distinguished road

      0  

    Default


    sorry, I just use the normal grid (no tree).

Similar Threads

  1. Replies: 3
    Last Post: 9 May 2011, 1:23 AM
  2. [CLOSED] Combobox in GXT 2.1
    By amotamed in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 6 Jan 2010, 5:06 AM
  3. [OPEN] [2.2][DUP][CLOSED] ComboBox in IE
    By JamesMa in forum Ext 2.x: Bugs
    Replies: 3
    Last Post: 28 Sep 2008, 4:28 AM
  4. Replies: 2
    Last Post: 20 Oct 2007, 7:50 AM

Thread Participants: 17