extjs4

Is it possible to show more than one summary row in gridpanel of extjs?

瘦欲@ 提交于 2019-12-23 08:56:47
问题 Following is my code to show a grid panel with total cost summary. I want to show another summary row with average. So any help? Ext.require(['Ext.data.*', 'Ext.grid.*']); Ext.onReady(function() { Ext.define('NewEstimate', { extend: 'Ext.data.Model', fields: ['description', 'cost'], validations: [{ type: 'length', field: 'description', min: 3 }, { type: 'int', field: 'cost', min: 1 }] }); var rowEditing = Ext.create('Ext.grid.plugin.RowEditing'); var store = Ext.create('Ext.data.Store', {

How to create hyper link in ExtJS 4?

倾然丶 夕夏残阳落幕 提交于 2019-12-23 07:25:37
问题 I am working in ExtJS 4.I have been getting stuck at a point where I have to create a hyperlink in ExtJS 4.I have been searching a lot for creating hyperlink in ExtJS 4 but I did not get any solution for it.Actually I have to create a hyperlink and after clicking on that link I am going to display another page in ExtJS 4. Actually also i did not get the event in ExtJS 4. How can I use hyperlink in ExtJS 4. I am using this way... { xtype: 'panel', html:'<a href="second.js">Second page</a>', }

How to create hyper link in ExtJS 4?

风格不统一 提交于 2019-12-23 07:25:24
问题 I am working in ExtJS 4.I have been getting stuck at a point where I have to create a hyperlink in ExtJS 4.I have been searching a lot for creating hyperlink in ExtJS 4 but I did not get any solution for it.Actually I have to create a hyperlink and after clicking on that link I am going to display another page in ExtJS 4. Actually also i did not get the event in ExtJS 4. How can I use hyperlink in ExtJS 4. I am using this way... { xtype: 'panel', html:'<a href="second.js">Second page</a>', }

node.updateInfo is not a function while appending node in extjs

心不动则不痛 提交于 2019-12-23 05:29:40
问题 I am trying to load data into an extjs 4 TreeStore but while appending node, I am getting node.updateInfo is not a function error. My model classes are as follows : Dimension.js Ext.define('ilp.model.Dimension', { extend : 'Ext.data.Model', require : [ 'ilp.model.DimensionLevel' ], fields : [ 'actualName', 'displayName' ], hasMany : {model : 'ilp.model.DimensionLevel', name : 'dimensionLevels'} }); DimensionLevel.js Ext.define('ilp.model.DimensionLevel', { extend : 'Ext.data.Model', fields :

How to stop extjs treepanel from loading infinitely?

半城伤御伤魂 提交于 2019-12-23 04:09:49
问题 Finally after struggling with extjs tree panel, tree store and building custom reader to read and convert pentaho data for 2 weeks I have managed to load pentaho data into treepanel of extjs. Now my Tree panel is loading same data infinitely. Treepanel looks as follows : Part of my json data looks as follows : { {name: 'US', candidateCount: 3, children: []}, {name: 'India', candidateCount: 922, children: [ {name: 'Goa', candidateCount:124, children: []}, {name: 'Maharashtra', candidateCount:

How to stop extjs treepanel from loading infinitely?

帅比萌擦擦* 提交于 2019-12-23 04:09:13
问题 Finally after struggling with extjs tree panel, tree store and building custom reader to read and convert pentaho data for 2 weeks I have managed to load pentaho data into treepanel of extjs. Now my Tree panel is loading same data infinitely. Treepanel looks as follows : Part of my json data looks as follows : { {name: 'US', candidateCount: 3, children: []}, {name: 'India', candidateCount: 922, children: [ {name: 'Goa', candidateCount:124, children: []}, {name: 'Maharashtra', candidateCount:

Extjs 4.2.2 Create Dynamic Unordered List containing Ext Components

谁说我不能喝 提交于 2019-12-23 03:46:15
问题 I am attempting to create basic ul in Ext 4.2.2 by defining a class extended from Ext.container.Container . Ideally I would like my rendered markup to be something along the lines of: <ul> <li> {any Ext component here} </li> ... </ul> I know I'm missing something in my current implementation that I have based off of Alex Tokarev's answer to: extjs 4 how to wrap children components of container in custom html? Ext.define('MyUnorderedList', { extend: 'Ext.container.Container', requires: [

ExtJS application not looking in the correct app folder

让人想犯罪 __ 提交于 2019-12-23 03:27:06
问题 In this tutorial, there is code that reads: Ext.require('Ext.app.Application'); var Application = null; Ext.onReady(function() { Application = Ext.create('Ext.app.Application', { name: 'AM', controllers: [ 'Users' ], launch: function() { //include the tests in the test.html head jasmine.getEnv().addReporter(new jasmine.TrivialReporter()); jasmine.getEnv().execute(); } }); }); For me, this leads to a 404 when the application is looking for the application code. GET http://localhost:8000/AM

How to create a field class containing an image in Ext JS 4?

对着背影说爱祢 提交于 2019-12-23 02:29:55
问题 i'm creating an application in Ext JS 4 and i'm stuck because i need a class containing an image to use into a form or a fieldset (like a regular textfield ); moreover the image will change depending on the value passed to the form. Something like an imagefield : Ext.define('Properties', { extend : 'Ext.form.Panel', alias : 'properties', bodyPadding: 5, // The fields defaultType: 'textfield', items: [{ fieldLabel: 'Device Name', name: 'deviceName' }, { xtype:'imagefield', fieldLabel: 'Status'

ExtJS 4 - How to download a file using Ajax?

半世苍凉 提交于 2019-12-22 18:44:26
问题 I have a form with various textfields and two buttons - Export to Excel and Export to CSV. The user can provide the values to different fields in the form and click one of the buttons. Expected behaviour is that an Ajax request should be fired carrying the values of fields as parameters and the chosen file (Excel/CSV as per the button click) should get downloaded (I am not submitting the form as there needs to be done some processing at the values before submit). I have been using the