extjs

extjs parsing nested json in template

ε祈祈猫儿з 提交于 2019-12-22 06:37:22
问题 Trying (unsuccessfully) to display data from nested json. JSON might look something like: { "contacts": [ { "id": "1", "client_id": "135468714603", "addresses": [ { "id": "1", "contact_id": "1", "address_id": "16", "address": { "0": { "id": "16", "address": "123 Some Rd", "address2": "", "city": "Toen", "state": "VS", "zip_code": "11111", "country": "USA" } } }, { "id": "6", "contact_id": "1", "address_id": "26", "address": { "0": { "id": "26", "address": "1 Other Road", "address2": "", "city

Highlight a part of an extjs4 line chart

一曲冷凌霜 提交于 2019-12-22 06:35:43
问题 In the extjs 4.1.1a code below is a working example of a line chart. Now I need to highlight a part of that chart on a given min and max timestamp. {'xtype' : 'chart', 'store' : 'ChartData', 'height' : '100%', 'width' : '100%', 'legend' : {'position' : top}, 'axes': [{ 'title': 'Power', 'type': 'Numeric', 'position': 'left', 'fields': ['power'] },{ 'title': 'Timestamp', 'type': 'Numeric', 'position': 'bottom', 'fields': ['timestamp'], 'minorTickSteps': 3 }], 'series': [{ 'type': 'line', 'fill

Unable to render data into grid column using JSON results

两盒软妹~` 提交于 2019-12-22 06:32:05
问题 I have a grid store with something like this. var gridStore = Ext.create('Ext.data.Store',{ proxy : { type : 'ajax', actionMethods : { read : 'POST' }, url : 'getECIAgentWrapperJobs.do', reader : { type : 'json', rootProperty : 'rows', totalProperty : 'results' } }, pageSize : 3, autoLoad : {start: 0, limit: 3} }); Clearly it makes an AJAX request to the url. The JSON response that I am getting for this store looks something like this : { "results":2, "rows":[ { "pkTable1":1, "name":"Rick",

How to edit / delete a row in a grid model using a button inside the gird rows?

我只是一个虾纸丫 提交于 2019-12-22 06:28:56
问题 Ext.onReady(function() { Ext.define('User', { extend: 'Ext.data.Model', fields: [ 'name', 'class', 'view', 'edit', 'delete'] }); var userStore = Ext.create('Ext.data.Store', { model: 'User', data: [ { name: 'Sri Vidhya', class: '6 A'}, { name: 'Rafla', class: '9 C'}, { name: 'Fabin', class: '10 B'}, { name: 'Jayanthi', class: '8 C'}, { name: 'Sri Vidhya', class: '6 A'}, { name: 'Rafla', class: '9 C'}, { name: 'Fabin', class: '10 B'}, { name: 'Jayanthi', class: '8 C'}, { name: 'Sri Vidhya',

ExtJS or SmartClient?

青春壹個敷衍的年華 提交于 2019-12-22 05:38:12
问题 I would like your opinion about these two frameworks. I like a lot the features of ExtJS, but recently I saw SmartClient and it seems to be great too, and free (its Client side features) for commercial projects. I tried a little of SmartClient and it seems to be easier than ExtJS, and it has a better documentation tnan ExtJS. BUT.. I didn't work with any of these frameworks and maybe I'm wrong. That's why I would like the opinion of people who has worked with them. And BTW.. how does the

Are There Memory Issues with Ext.js

99封情书 提交于 2019-12-22 04:36:16
问题 The UI for an application I work on was recently redone with Ext.js and I have noticed the memory usage of IE seems very large when viewing it. Are there known memory issues with Ext.js when using IE? 回答1: The first thing that jumps out at me in your question is that you are seeing this in IE. My team recently went through the same issue (Extjs on IE). It turns out Ext is not the culprit but rather IE is likely the cause. A quick Google for 'IE closure memory leak' will find you plenty of

Get Ext JS version

与世无争的帅哥 提交于 2019-12-22 04:13:16
问题 I have taken over a PHP + Ext JS project. Unfortunately, there is no documentation. How do I find out the Ext JS version that is being used? In jQuery, we get the version by running $().jquery; . Anything like this in Ext JS? 回答1: Two easy ways to do this. First is from a web browser's console.. In ExtJS 3.x: Ext.version; In ExtJS 4.0: Ext.getVersion('extjs'); In >= ExtJS 4.1 Ext.getVersion().version; Or you can look in the ext-all-debug.js and check the version number at the top of the

How to prevent extjs grid from scrolling when clicking on a cell?

懵懂的女人 提交于 2019-12-22 04:03:57
问题 I am currently using the grid component with Extjs 4 based on the editable grid example. I would like to have a link associated with each cell so that when I click on a cell it takes me to another page. However, when there is a vertical scroll that is trigered on the page when clicking on the link. e.g. try reducing the size of http://dev.sencha.com/deploy/ext-4.0.0/examples/grid/cell-editing.html, the first click on the grid scrolls the page so that the grid is on the center and the event is

Update or Reload Store of ExtJs ComboBox

删除回忆录丶 提交于 2019-12-22 01:56:08
问题 I'd like to know a way of how to update or reload the list values of a ExtJs ComboBox. For instance, I have a some checkboxes. These checkboxes determine what values the ComboBox should have. So, after selecting some of those, I click the drowndown list (combobox) to see the values. In short, how can I change the values (store) of a ComboBox already has. Hope someone can help me Thanks 回答1: I've been using this undocumented ExtJs API function to change the store at runtime: mycombobox

How to Show/Hide/Toggle Element with ExtJS?

半城伤御伤魂 提交于 2019-12-22 01:53:46
问题 How to Show/Hide/Toggle Element with ExtJS? 回答1: Very straightforward, at the element level (further to the comments below): Ext.get("my-div"); Where my-div is the id of the element in question. See here and here At the component level: Ext.getCmp('idofthecomponent').getEl().show(); Ext.getCmp('idofthecomponent').getEl().hide(); Ext.getCmp('idofthecomponent').getEl().toggle(); See here (show), here (hide) and here (toggle) respectively. So 'idofthecomponent' would be, say the id assigned to a