extjs4.2

Ext Js 4 Chart inside viewport

南楼画角 提交于 2021-01-29 06:43:01
问题 I am trying to build a chart inside a viewport, but can't figure out how. Visit http://13.233.173.7/app2.html to view I have tried importing var chart into overview-generic.js and specify chart as items: chart. It is not working <!DOCTYPE html> <html> <head> <title>Dashboard</title> <!-- ExtJS --> <script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/4.2.1/examples/shared/include-ext.js"></script> <!-- Shared --> <link rel="stylesheet" type="text/css" href="http://cdn.sencha.com

ExtJs - Filter a grid with a search field in the column header

元气小坏坏 提交于 2020-01-09 03:19:52
问题 In ExtJs, there are many options to filter a grid. There are two nice examples in the documentation, like referenced in this question. Remote filtering Local filtering However, having the filter hidden in the default dropdown menu of Ext.ux.grid.FiltersFeature looks really awkward for me. A good ergonomic choice would to create search fields in the column headers, like @Ctacus shows in his question. How can this be achieved ? 回答1: After quite much research through the sparse documentation,

Extjs4 Sending accented characters to the server

 ̄綄美尐妖づ 提交于 2020-01-06 11:23:02
问题 I am working with Extjs4. I am trying to send accented characters to server. I was trying to send ó. And what I was receiving at the server side was ó. I am sending it using Store proxy. In store proxy, I have added headers: { 'Content-Type': 'charset=utf-8' } Still it did not send the accented characters properly. How should I send accented characters to the server? Thanks in advance! 回答1: user2316489, IMHO this is a problem with your server configuration, rather than a front-end

Extjs4 Sending accented characters to the server

天涯浪子 提交于 2020-01-06 11:20:30
问题 I am working with Extjs4. I am trying to send accented characters to server. I was trying to send ó. And what I was receiving at the server side was ó. I am sending it using Store proxy. In store proxy, I have added headers: { 'Content-Type': 'charset=utf-8' } Still it did not send the accented characters properly. How should I send accented characters to the server? Thanks in advance! 回答1: user2316489, IMHO this is a problem with your server configuration, rather than a front-end

Non-store value ExtJs

…衆ロ難τιáo~ 提交于 2020-01-05 23:47:12
问题 So I'm trying to create an 'abnormal' combobox using ExtJs 4 and I'm running into a slight issue which I can't figure out how to resolve. I got the basics down with the code that follows. As of right now I am able to get the dropdown to show all the addresses in a proper format and when I click on the proper address it properly shows the 'Street1' value in the input. Here is what I'm stuck on: I'm trying to add an initial item to the combobox that basically says something like 'Add New

How to have headers in first column instead of regular headers in top row?

两盒软妹~` 提交于 2020-01-05 15:25:34
问题 Generally, ExtJS renders the JSON into grid considering that properties go to top columns and their number is fixed. And the corresponding values are loaded in rows as records.Here number of rows may vary depending upon the records in Json. But there is slight change in my requirement. I want the properties to go to first row and corresponding columns. Here number of columns may vary depending upon the records in Json. I want to render something like depicted below : +-----------------+------

How can I put my Extjs 4.2.x project inside latest Angular App

℡╲_俬逩灬. 提交于 2020-01-05 08:01:45
问题 I have a large app built in Ext4.2.x. Now the requirement is to do further development in Angular. I am trying to create a wrapper of Angular around Ext app so that we can use angular for further development/ migration of code piece by piece. till the time both the framework should work in harmony. Approach I am trying: I have created app(name is: NgApp ) scaffolding using angular-cli and put that code inside the root directory of Ext app( ExtNg ). Created a folder( ExtNg/NgBuild )to hold the

override Extjs Timefield to show custom max value 23:59

纵然是瞬间 提交于 2020-01-03 05:32:06
问题 I need your help with overriding an ExtJs Time field to show one custom value, 23:59. I tried to override the createStore function, but my time picker still has the standard values. What could be the issue? Ext.override(Ext.picker.Time, { createStore: function() { var me = this, utilDate = Ext.Date, times = [], min = me.absMin, max = me.absMax; while (min <= max) { times.push({ disp: utilDate.dateFormat(min, me.format), date: min }); min = utilDate.add(min, 'mi', me.increment); } var end =

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 :

ExtJS 4.2 DatePicker Multiselect catch event in controller

时间秒杀一切 提交于 2019-12-31 03:26:12
问题 I am creating a custom date-picker in ExtJS 4.2 using the MVC architecture. The idea is that the component allows a user to input / select multiple dates at a time however I am having a few issues: My selectedDates variable is an object and I don't how how to make it return the list of dates. When you open a new window the picker remembers the previously selected dates from the last time that the window was open. I thought that when you close a window in Ext , the components are destroyed ?