extjs4.1

Uncaught TypeError: Cannot read property 'internalId' of undefined( WHILE SORTING NODES ON EXPAND)

元气小坏坏 提交于 2020-01-03 19:31:26
问题 I want to the sort the tree node when it is expanded. I have been struggling to do this in extjs 4.1.0 with itemexpand or beforeItemExpand event using the following code. It works fine in ExtJS 4.2.1. When I click on node to expand, I get this: Uncaught TypeError: Cannot read property 'internalId' of undefined at: ns[i].viewRecordId = records[i].internalId in updateIndexes : function(startIndex, endIndex) method of Ext.view.AbstractView class Code: var mystore = Ext.create('Ext.data.TreeStore

How to export grid data to excel along group headers/ summary records with expand and collapse action in Excel?

…衆ロ難τιáo~ 提交于 2020-01-01 19:26:14
问题 I have done application using Extjs 4. I have requirement need to export grid data to excel. I have grid it contains many records, showing records by group headers/summary(collapse/Expand actions ). The same thing i need to export grid data to excel the same activity need collapse/expand in excel sheet . I have tried i am able to export grid records with group headers.summary to excel, cool it is working but collapse/expand is not happening in excel sheet. I need to implement this feature by

ExtJS Layout, Horizontally then grow vertically

大憨熊 提交于 2020-01-01 10:14:13
问题 I have a Ext.panel.Panel into which I want to dynamically add other "smaller" panels representing different "things" in my application. This panel is at the top of a grid and it is the same width as the grid. When a "smaller" panel is dynamically added to this "container panel" I want the panels to be added horizontally then vertically if the total width of all the "little" panels is greater than the width of the container. I've tried 'fit', 'hbox', 'vbox', everything. Am I missing a layout

Explain MVC architecture of extjs

二次信任 提交于 2020-01-01 08:54:09
问题 I created a small sudoku app using Javascript. Now I am trying to convert that javascript code into extjs ( 4.1.1a ) code. I have gone through the docs to understand the MVC Architecture , but it seemed not so detailed for me as I am a beginner. Can someone please explain the MVC Architecture of Extjs based on my Sudoku app? The design of my sudoku app code is as follows: The description of the above design is as follows: container (blue) --> parent panel (grey) --> child panel (red) The "

Extjs4.2.1 - Load json to treepanel fails

不想你离开。 提交于 2020-01-01 05:43:11
问题 I create a treepanel and I and create store like var store = Ext.create('Ext.data.TreeStore', { autoload: false, proxy: { type: 'ajax', url: 'data.php', reader: { type: 'json', root: 'results' } } }); my server print json look like { "results": [ { id : '1' , text : '1', expanded: true, children :[ { id : '5' , text : '5', leaf:true}, { id : '6' , text : '6', leaf:true} ] }, { id : '2' , text : '2', leaf:true}, { id : '3' , text : '3', leaf:true}, { id : '4' , text : '4', leaf:true}, { id :

How to set custom folder names for views stores and models on ExtJs 4 application?

懵懂的女人 提交于 2019-12-25 14:11:29
问题 I ask this because there is an existing application that I would like to enable for using Sencha CMD so first step is to instantiate it via: Ext.Application which presents the first problem: folder structure is someApp --Views --Model --Store --moreFolders (should be model, store, view) Rather than refactoring hundreds of classes(huge app) I want to set the folders path if possible. Can you think in any drawbacks? What would your approach be? Any ideas are very well received. Using ExtJs 4.1

How to set custom folder names for views stores and models on ExtJs 4 application?

冷暖自知 提交于 2019-12-25 14:11:13
问题 I ask this because there is an existing application that I would like to enable for using Sencha CMD so first step is to instantiate it via: Ext.Application which presents the first problem: folder structure is someApp --Views --Model --Store --moreFolders (should be model, store, view) Rather than refactoring hundreds of classes(huge app) I want to set the folders path if possible. Can you think in any drawbacks? What would your approach be? Any ideas are very well received. Using ExtJs 4.1

Extjs Grid - Add class to row when click a cell of row

妖精的绣舞 提交于 2019-12-25 07:35:12
问题 I want to add class to row when i click a cell of grid like below I try three option but not working. How to make it work thanks listeners: { ,'cellclick': function (grid, td, cellIndex, record, tr, rowIndex, e, eOpts ) { // addclass to row Ext.fly(grid.getView().getRow(rowIndex)).addClass('bluerow'); // not working grid.getView().addRowCls(rowIndex, 'bluerow'); // not working Ext.get(e.target).addClass('bluerow'); // not working } } 回答1: grid param in cellclick is already a view.Please have

adding views using EXT sdk store issue

我的梦境 提交于 2019-12-25 05:16:26
问题 I have the following app.js file. When i run the command with out the "require" it works but does not include the views. When i add the required line i'm getting "store is undefine". I guess this is because the store are not defined at that point. So what is best play here? sencha create jsb -a http://mysite.local/ext/cutter/app/index.html -p app.jsb3 app.js Ext.Loader.setConfig({ enabled: true }); Ext.Loader.setPath('App', '/ext/Cutter/app'); Ext.Loader.require(['App.view.ViewCutter']); Ext

Extjs 4.1.3 button that sets active filters

橙三吉。 提交于 2019-12-24 20:10:04
问题 I want to add a button to the toolbar that automatically sets a filter as active and then subsequently filters the data. I have tried using the setActive() function for Ext 4.1.3 but that function is not being recognized. fiddle Code var openButton = Ext.create('Ext.Button', { text: 'Open Topics', handler: function () { grid[uniqueId].filters.setActive('Open/Current'); } }); ... var columns = [{ text: 'Status', width: 100, dataIndex: 'TopicStateValue', filter: { type: 'list', options: ['Open