1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
    dtheiss is on a distinguished road

      0  

    Default Answered: BoxReorderer: Using forms in Subpanels

    Answered: BoxReorderer: Using forms in Subpanels


    Hi,
    I try to reorder forms in subpanels with BoxReorderer.
    All is good (means: DandD function), but it is not possible, to change the values in the textfields.
    How can I fix it? Please help me out!!
    Thanx in advance.

    Code:
    Ext.Loader.setPath('Ext.ux', 'ux');
    
    
    Ext.onReady(function(){
       p = Ext.create('Ext.panel.Panel', {
          width: 300,
          bodyPadding: 5, 
          default: {
             width: 300,
             bodyPadding: 5
          },
          items: [{
             bodyPadding: 5,
             default: {
                width: 300,
                bodyPadding: 5
             },
             layout: 'vbox', 
             items: [{
                xtype: 'panel',
                title: 'a',
                items: [{
                   xtype: 'textfield',
                   fieldLabel: 'text1',
                   emptyText: 'Value3'
                }, {
                   xtype: 'textfield',
                   fieldLabel: 'text2',
                   emptyText: 'Value4'
                }]
             }, {
                xtype: 'panel',
                title: 'b',
                items: [{
                   xtype: 'textfield',
                   fieldLabel: 'text1',
                   emptyText: 'Value1'
                }, {
                   xtype: 'textfield',
                   fieldLabel: 'text2',
                   emptyText: 'Value2'
                   
                }]
             }],
             plugins: Ext.create('Ext.ux.BoxReorderer', {
             }),         
             title: 'Felder',
             xtype: 'panel'
          }],
          title: 'BoxReorderer',
          renderTo: Ext.getBody()
       });
    });

  2. It sounds like the DD is capturing the mousedown event. If you remove the BoxReorderer plugin and make a field draggable, you won't be able to focus on it either.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Answers
    3542
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    It sounds like the DD is capturing the mousedown event. If you remove the BoxReorderer plugin and make a field draggable, you won't be able to focus on it either.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
    dtheiss is on a distinguished road

      0  

    Default


    Mmmh. Okay. I understand. But do you have any suggestion for moving panels horizontal containing textfields?
    Thanx for your help!

Thread Participants: 1

Tags for this Thread