Results 1 to 2 of 2

Thread: Problem open Window on rowcklick in a grid panel

  1. #1
    Sencha User
    Join Date
    Jul 2014
    Posts
    14

    Default Problem open Window on rowcklick in a grid panel

    Hey Community

    I have a Problem to open a Window on row double click in an Grid Panel. When I the doubleclick is done the new Window is not shown.

    The Code is:
    Code:
    Ext.onReady(function(){
              
              var win = Ext.widget('window', {
                         title: 'Contact Us',
                         closeAction: 'hide',
                         width: 400,
                         height: 400,
                         minHeight: 400,
                         layout: 'fit',
                         resizable: true,
                         modal: true,
                         //items: form
              });
    
              
             Ext.define('File',{
                 extend: 'Ext.data.Model',
                 fields: [
                     {name: 'file_id'},
                     {name: 'file_input_filename'},
                     {name: 'file_type'},
                     {name: 'lc_status'},
                     {name: 'file_input_date'}
                 ]
             });
         
             // create the Data Store
             var overviewStore = Ext.create('Ext.data.Store', {
                 model: 'File',
                 autoLoad: true,
                 proxy: {
                     type: 'ajax',
                     url: 'FileOverview',
                     reader: {
                         type: 'xml',
                         // records will have an "Item" tag
                         record: 'Row',
                         idProperty: 'file_id',
                         totalRecords: '@total'
                     }
                 }
             });
         
             // create the grid
             var gridOverview = Ext.create('Ext.grid.Panel', {
                 store: overviewStore,
                 id: 'OverviewGridPanelId',
                 columns: [
                     {text: "ID", flex: 1, dataIndex: 'file_id', sortable: true},
                     {text: "Filename", width: 180, dataIndex: 'file_input_filename', sortable: true},
                     {text: "Filetyp", width: 180, dataIndex: 'file_type', sortable: true},
                     {text: "Status", width: 180, dataIndex: 'lc_status', sortable: true},
                     {text: "Imported", width: 115, dataIndex: 'file_input_date', sortable: true}
                     
                 ],
                 renderTo:'binding-example',
                 width: 1200,
                 height: 650,
                 
             });
    
             gridOverview.on('cellclick', function(table, td, cellIndex, record, tr, rowIndex, e, eOpts) {
              var masterIndex = rowIndex;
              //openDialog(record.get('file_id'));
              win.show(); 
              
             });
             
             
         }

    Any idea why the window is not shown?

    Thanks and Regards
    Chris

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Perhaps you need to use the celldblclick event instead?

Similar Threads

  1. Need to open the window or panel in the center region of the panel.
    By kamalakarreddy vancha in forum Ext: Q&A
    Replies: 2
    Last Post: 14 Aug 2013, 1:51 AM
  2. Replies: 0
    Last Post: 31 Mar 2011, 1:13 PM
  3. Replies: 7
    Last Post: 15 May 2009, 2:57 AM
  4. Replies: 0
    Last Post: 30 Jan 2008, 10:31 AM

Tags for this Thread

Posting Permissions

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