Results 1 to 2 of 2

Thread: Fileupload missing when putting it together with dataview

  1. #1
    Sencha User
    Join Date
    Jan 2018

    Default Fileupload missing when putting it together with dataview

    Hi, I was wondering if what is wrong with the way I setup my Panel. Together with a dataview I wanted to include a fileupload with it but it seems that it doesn't show in the panel itself (only the dataview). Any way on how to do this or how to correct it? Appreciate the help.

    var iPanel= new Ext.panel.Panel({                                    
                                        width: 490,
                                        height: 500,
                                        layout: 'fit',
                                        title: 'Select an avatar',
                                        floating: true,
                                        closable : true,
                                        items: {
                                            extend: 'Ext.view.View',
                                            xtype: 'dataview',
                                            id: 'myDataView',
                                            reference: 'dataview',
                                            itemSelector: 'div.dataview-multisort-item',
                                            store: Ext.create(''),
                                            tpl: [
                                                '<tpl for=".">',
                                                       '<a href="#">',
                                                           '<img id="{name}" src="resources/images/default-avatars/{thumb}" height="72" weigh="72"/>',
                                          xtype: 'filefield',  //this does not show in panel
                                          id: 'form-file',
                                          emptyText: 'Select an image',
                                          fieldLabel: 'Photo',
                                          name: 'photo-path',
                                          buttonText: '',
                                          buttonConfig: {
                                          iconCls: 'upload-icon'

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014



    This somewhat looks like you're expecting the auto layout to determine heights. You might try setting the "outside" panel to a layout: 'vbox' and then give that filefield a height (and the dataview a flex : 1).

    Hope this helps.


Similar Threads

  1. Build Failing Ext.dataview.DataView Missing Dependency
    By Chris Wallace in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 18 Jan 2016, 10:52 AM
  2. Missing Dataview Empty Text
    By Cybjorg in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 29 Jan 2015, 7:43 AM
  3. What am I missing with the DataView component?
    By dshookowsky in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 22 Aug 2012, 9:09 AM
  4. [FIXED] emptyText missing in Ext.dataview.List
    By kyr0 in forum Sencha Touch 2.x: Bugs
    Replies: 0
    Last Post: 19 Oct 2011, 8:52 AM
  5. FormPanel with fileUpload=true and missing parameters
    By neo1010 in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 3 Jun 2009, 6:19 AM

Posting Permissions

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