extjs

Javascript: undefined is not a function

淺唱寂寞╮ 提交于 2019-12-11 18:39:26
问题 This is my code for my controller: Ext.define(controller.details.StudentControlller', { extend: 'Ext.app.Controller', requires: [ ], config: { }, Init: function(){ "use strict"; var me = this; this.app = this.getApplication(); this.createStudentTables(); } createStudentTables: function () { var finalStudent=[], view=this.getStudentsTableView(); arrReqTplTest = ['<div class="StuReq"><table><tr><th class=" StuReq ">' + 'NAME ' + '<img src="resources/images/arrow-bottom-1-512.png" width="10px"

Reduce size/number of files being downloaded from EXTJS app

帅比萌擦擦* 提交于 2019-12-11 18:37:08
问题 I used Sencha CMD to build an app and want to ensure that I'm only downloading what is required for the app to run. I have read some places that the way to do this is by using the Required [] clause to only include the required classes, however I don't think I understand this clearly. For example I have a page that has an {xtype: 'grid'} within it, but I haven't put Requires : [ 'Ext.grid.Panel' ], yet it still displays properly. In my mind if I haven't included the requires, and CMD is doing

In javascript how do you open a file from the server?

江枫思渺然 提交于 2019-12-11 18:26:44
问题 Im working in an application that uses java + spring on the server side aswell as extdirectspring. On the client side it uses extjs/javascript. I want to poke a method on the serverside and retrieve a file from the database. If the file doesn't exist then I'd like to display an error in some way. The attempt to retrieve the file and the check it exists need to happen in the same call - the file could be deleted in between calls. The way I can see people have done it in the current application

How do you safely convert an Ext JS 4 Chart to an image?

别来无恙 提交于 2019-12-11 18:18:59
问题 Just wondering if anyone knows how you would obtain an image from an Ext JS Chart in a secure manner? I noticed that the Ext JS 4.1 preview has a "save" method that allows you to get a .png image from a chart but looking at the source code it seems to just sends the definition of the svg/vml from your chart to a Sencha server which is not secure enough for what I need. 回答1: I had to do this before 4.1 so I never used the Sencha server conversion. ImageMagick didn't have a conversion for html

Extjs fields overlap when using HBox layout

蓝咒 提交于 2019-12-11 18:17:37
问题 I am having trouble making ExtJS field set elements appear correctly without overlapping. I use a FieldSet class and each row is a hbox container. My goal is to leave the layout the same but somehow make the values automatically show up on more than one line if needed. Below is a sample of what my code looks like and a screenshot. var genInfoFieldSet = new Ext.form.FieldSet({ title: '<b>TEST FIELD SET</b>', height: '100%', autoWidth: true, items: [ //ROW 1 { xtype: 'container', layout: 'hbox'

Placing JSON string into a store

南笙酒味 提交于 2019-12-11 18:13:39
问题 Simple question here. How could I place this JSON string into an Ext.data.Store? { "elements":[ { "element":{ "name":"value 1", "id":"element 1", "attributes":[ { "attrname":"id", "attrvalue":"This is the ID" }, { "attrname":"name", "attrvalue":"This is the name" }, { "attrname":"description", "attrvalue":"This is the description" }, { "attrname":"table_name", "attrvalue":"This is the table" } ] } } } This is a simplified version of my question: Placing JSON response elements into a store-

Can I get a horizontal scrollbar at the top and the bottom of a grid, when using Ext JS?

五迷三道 提交于 2019-12-11 17:57:57
问题 Is there any way to get a horizontal scrollbar both at the top and at the bottom of a grid? Here's what I'm talking about: 回答1: create an extra container (maybe as docked top) and override http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.panel.Table-method-syncHorizontalScroll func on your grid panel. 来源: https://stackoverflow.com/questions/18317360/can-i-get-a-horizontal-scrollbar-at-the-top-and-the-bottom-of-a-grid-when-using

Add custom item to radio button in extjs

喜你入骨 提交于 2019-12-11 17:57:26
问题 I have this radio button group in extjs { xtype: 'radiogroup', flex: 8, vertical: true, columns: 1, labelWidth: 50, id: 'radio_group_id', fieldLabel: 'Group Label', items: [{ boxLabel: 'option 1', name: 'rb-auto', inputValue: 1, checked: true }, { boxLabel: 'option 2', name: 'rb-auto', inputValue: 2 }, { boxLabel: 'option 3', name: 'rb-auto', inputValue: 3, // is this somehow possible items:[{ xtype:'numberfield', // number field settings }] }, { boxLabel: 'option 4', name: 'rb-auto',

How best to implement support for multiple devices in a web application

荒凉一梦 提交于 2019-12-11 17:52:32
问题 My client would like a business application to support 'every possible device'. The application in question is essentially a web application and 'every possible device', I believe encompasses mobile phones, netbooks, ipad, other browser supporting devices, etc. The application is somewhat complex w.r.t. the data it captures and other functions it performs (reporting). If I continue to honor increasing complexity in the application, I guess there are more chances of it not working on other

How to load URL from XML into Modal in sencha EXTjs?

房东的猫 提交于 2019-12-11 17:51:53
问题 i want to load URL tag data into my Modal Store then into my google.js page.plz can anybody help me what is the best practice too do soo and tell me what i am doing wrong bellow is my code: so far i try this but dont know exactly what i am doing wroong because i am a newbie in extjs XML code: <?xml version="1.0" encoding="UTF-8"?> <root> <expanded>true</expanded> <children> <element> <text>Home</text> <leaf>false</leaf> <iconCls>x-fa fa-home</iconCls> <id>home</id> <cls>mainNav</cls>