from extjs array grid store, call csv file and store -


i have code upload extjs array grid. in store, don't know how call data csv file have uploaded (without saving).

here's controller upload.js:

ext.define('application.controller.upload',  {   extend : 'ext.app.controller',      init: function()      {         this.control(         {             'uploadview button':              {                 uploaded: this.uploadedfile             }         });     },      uploadedfile : function(form)     {         console.log('uploadedfile called, file: ' + form);          ext.create('ext.container.viewport',         {             items:             [                 {                      xtype: 'displayview',                     store: form //guessing here ******                 }             ]         }         );     } }); 

here's view display.js:

ext.define('application.view.display' , {     alias : 'widget.displayview',     var store = ext.create('ext.data.arraystore',      {         fields:          [fielddata]         /********data: mydata*************/     });     var grid = ext.create('ext.form.panel'),     {         //extend: 'ext.form.panel',         //alias : 'widget.displayview',         requires: 'ext.grid.column.action',         xtype: 'array-grid',         store: store,         columnlines: true,         height: 400,         width: 800,         title: 'array data grid',         viewconfig:          {             striperows: true,             enabletextselection: true         },         columns:         [columnlines]     }; }); 

your display.js not correct. see line after alias.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -