extjs

Sencha Touch Charts style

拟墨画扇 提交于 2020-01-17 07:46:25
问题 I'm playing with Sencha Touch Charts. I've got them working, with interactions, animation everything is good. I even styled a bunch of them. But when I got around styling a series of type area.. it just wouldn't take. new Ext.chart.Chart({ theme: 'MyTheme', cls: 'myClass', legend: { ... }, interactions: [{ ... }], store: app.stores.MyStore, axes: [...], series: [{ type: 'area', axis: 'left', xField: 'Date', yField: 'someField' }, { type: 'line', axis: 'right', xField: 'Date', yField:

Sencha Touch Charts style

有些话、适合烂在心里 提交于 2020-01-17 07:46:03
问题 I'm playing with Sencha Touch Charts. I've got them working, with interactions, animation everything is good. I even styled a bunch of them. But when I got around styling a series of type area.. it just wouldn't take. new Ext.chart.Chart({ theme: 'MyTheme', cls: 'myClass', legend: { ... }, interactions: [{ ... }], store: app.stores.MyStore, axes: [...], series: [{ type: 'area', axis: 'left', xField: 'Date', yField: 'someField' }, { type: 'line', axis: 'right', xField: 'Date', yField:

How to get Xml data by using ajax

巧了我就是萌 提交于 2020-01-17 06:10:42
问题 I am trying to get my xml data by using ajax call. But I am getting only ROOT Node value data in my result.responseXML . Not able to access ITEM tag data. My XML. <ROOT UN="ABC" Total="28"> <ITEM Val = "1" data = "name1" /> <ITEM Val = "2" data = "name2" /> <ITEM Val = "3" data = "name3" /> <ITEM Val = "4" data = "name4" /> <ITEM Val = "5" data = "name5" /> </ROOT> Here is what I am trying. Ext.Ajax.request({ url : url, method: 'GET', success: function ( result, request ) { debugger; result

Scope in ExtJS 4 inside a function handler

这一生的挚爱 提交于 2020-01-17 03:25:34
问题 I've searched a little about the scope problem and found some stuff but I'm not sure they work for my case. I'm really confused atm so I thought I might as well ask directly to the forums. I have a tree panel. Inside that tree panel I have a dockedItem of xtype: 'textfield'. That textfield takes a value and uses it as a parameter in an ajax request via Ext.Ajax.Request inside a handler for the specialkey event. The server returns a JSON object on its response that gets decoded and contains

Extjs4 - Ajax Request : Url generation

牧云@^-^@ 提交于 2020-01-17 01:22:05
问题 I need to set an ajax request with a generated url. Ext.define('Cc.store.Absences', { extend: 'Ext.data.Store', model: 'Cc.model.Absence', autoLoad: false, proxy: { type: 'ajax', url: 'person/user_id/absences', //I need a param to define user id reader: { type: 'json' } } }); I think I have to use Ext.data.Operation but I don't know how to do that. 回答1: If you are looking to dynamically generate an URL and assign it to the store, you can do it as follows: store.getProxy().url = '/person/' +

How to save JSON file when use it as ExtJs grid store

删除回忆录丶 提交于 2020-01-16 18:27:42
问题 I have developed application which use ExtJs functionality where I should keep my store in json file. My store looks like this: var Grid1Store = new Ext.data.JsonStore({ fields: [ 'Something 1', 'Something 2', 'Status' ], autoLoad: true, proxy:{ type:'ajax', url:'resources/buildJsonStore/something.json', reader:{ type: 'json' } } }); Where something.json is my data. The problem is that I want dynamically add data to my store and after that to save the JSON file. I add data successfully with

How to remove all items from Ext.ux.slidenavigation.View

我们两清 提交于 2020-01-16 14:03:15
问题 So here is the plugin that I'm using for slidenavigation: slidenavigation, and I would like to remove all items on painted method. It seems that items are stored in this.data.items . However clearing an array doesn't solve an issue. CLearing the store didn't as well. So here is the painted method to initialise the items and push them to the plugin Ext.define("APN.view.FlyoutNavigation", { id: "flyoutNavigationPanel", extend: 'Ext.ux.slidenavigation.View', }, listeners: { painted: function() {

override Ajax.js with listener for requestexception not working

强颜欢笑 提交于 2020-01-16 04:24:29
问题 This is included in a requires statement in the main app. It loads Ajax then dies. I'm using Extjs 5. The code is in an overrides folder under ui/. It can't seem to find the code in a folder at the same level as app. Ext.define('Ext.overrides.Ajax', { override : 'Ext.data.Connection', listeners : { requestexception : function(response) { var error = response.status + ' - ' + response.statusText; // if response status is 202 (Accepted), should // have warning message if (response.status == 202

MessageBox shown after function is over

跟風遠走 提交于 2020-01-16 04:07:12
问题 I have a javascript function that calls my javascript function, my func islike this: function sugParitValidation(){ var isValid = false; Ext.MessageBox.confirm(' ','Are you sure you want to do this?', function(btn){ if(btn == 'yes'){ isValid = true; } }); return isValid ; } My problem is - if statement and the return statment is happening, and only after that the confirm window being shown. That way I can't react to what the user choosed. how to solve this? tried allready use setTimeOut, no

Can I use Get with EXTJS

不羁的心 提交于 2020-01-15 11:32:54
问题 I'm in the process of learning ExtJS after using JQuery for years. I like the ease of use with JQuery but I'm having difficulty trying to do similar things with ExtJs. Currently I'm trying to get a PHP page while passing it an argument. In retrun I need to populate a select box with the data. With JQuery the call would look something like this: $.get("test.php?id=abc", function(data){ $('#result').html(data); }); Can I do something like this with ExtJS? 回答1: Yes, you should be able to use Ext