1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
    courtera is on a distinguished road

      0  

    Default Unanswered: Drag and drop to form panel

    Unanswered: Drag and drop to form panel


    Hi,

    I am trying to drag from a grid panel to a form panel but am having some difficulties. How can I use Ext.define() to define a class to receive the dropped information from the grid panel? I am pretty new to ExtJS but have been struggling with the examples. Any help would be greatly appreciated.

    Thanks!

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,823
    Answers
    453
    Vote Rating
    608
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      -1  

    Default


    There's already an example of it in the SDK download:

    /examples/dd/dnd_grid_to_formpanel.html
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
    courtera is on a distinguished road

      0  

    Default


    I have already looked at that example. I do not understand how to use Ext.define to get that code to work.

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,823
    Answers
    453
    Vote Rating
    608
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      -1  

    Default


    Then I don't really understand the question. define() is just used to create a class definition, so it doesn't really have any impact on the code, it's essentially just re-arranging it. You'll need to elaborate.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
    courtera is on a distinguished road

      0  

    Default


    I get an error with formpanel.body specifically if I am setting things up correctly. The structure of my file looks like this:
    Code:
    var ... (all the vars from the example)
    
    Ext.define('blah'
      alias:'widget.blah',
      extend:'Ext.container.Container'  
    
     initComponent:function()
    {
      this.callParent(arguments);
    
    this.add{(
             xtype:'panel',
            layout: 'border',
            items:[ formPanel ]  
    });
    }
    
    )};
    I can post the entire file if it would help. I appreciate the help

  6. #6
    Sencha User
    Join Date
    Jul 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
    courtera is on a distinguished road

      0  

    Default


    How should I rearrange my file so that it works? I feel like the formpanel is not being rendered which is causing the formpanel.body error.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi