extjs4

EXTJS 4.2 escape colon (:) in XML Tag for XML Reader

霸气de小男生 提交于 2019-12-11 19:49:23
问题 I am trying to load atom pub CMIS 1.0 binding into EXTJS and the colons in the tags are stopping the XML reader from doing its work. For instance the xml looks like: <atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://docs.oasis- open.org/ns/cmis/core/200908/" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:app="http://www.w3.org/2007/app"> <atom:author> <atom:name>system</atom:name> </atom:author> <atom:id>http://chemistry.apache.org/MTAz</atom:id

Generate save as dialog box with AJAX request in Ext Js

点点圈 提交于 2019-12-11 19:46:55
问题 I have an application that contains a grid and button for the user to be able to export the grid to excel. I want to be able to show the save as dialog box when the server responds with the excel file.The server accepts the parameters as a JSON object. Here is my code:- Ext.Ajax.request({ url: '/export/excel/', method: 'POST', //Send the query as the message body jsonData: jsonStr, success: function (result,request) { Ext.DomHelper.append(document.body, { tag: 'iframe', frameBorder: 0, width:

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'

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',

Find out if a selected item in ExtJs ina Ext.panel.tree has a child

限于喜欢 提交于 2019-12-11 17:34:42
问题 does anyone know a way to find out, in ExtJS if a selected item in an Ext.tree.Panel has a child? I know you can find a selected item by doing tree_dir.getSelectionModel().getSelection() but I don't see any way to check if it has any children. 回答1: The instance returned by tree_dir.getSelectionModel().getSelection() should have hasChildNodes() method specifically for that purpose. 来源: https://stackoverflow.com/questions/13608736/find-out-if-a-selected-item-in-extjs-ina-ext-panel-tree-has-a

Extjs 5.0 model POST values not received on server side (working Extjs 4.2)

爱⌒轻易说出口 提交于 2019-12-11 17:14:56
问题 I am upgrading our Extjs 4.2 app to Extjs 5.0. I am able to bring up all the read only pages but i am getting issues when i try to update/save the data. I will really appreciate your help!! My model data values are not showing up on the server side, i am able to print model with console.log(model) and it has all the values , but on the server side it only has id and all the other parameters are showing as null. Here is proxy in the model : Ext.define('MyApp.model.User', { extend: 'Ext.data

How to filter combo extjs when there is empty value?

家住魔仙堡 提交于 2019-12-11 16:58:47
问题 Value in combo box doesn't filter and value "null" still show. This code SkpdCombo.js and I didn't find what error. So please help me what's mistake and what should I do with this code? Ext.define('App.view.skpd.SkpdCombo', { extend: 'App.view.CommonCombo', alias: 'widget.SkpdCombo', fieldLabel: 'Skpd', displayField:'_combo_', valueField: 'skpd_id', queryMode: 'remote', initComponent: function() { if (!this.store){ this.store = new App.store.SkpdStore(); this.store.load(); } this.callParent()

connect json with extjs

南笙酒味 提交于 2019-12-11 16:34:14
问题 In my sample login form, I am trying to connect to json and get the result ie., true, if username and password matches, else false. json ( exists in my project folder ) { "form": { "login": [ { "username": "venkat", "password": "123" }, { "username": "admin", "password": "345" } ] } I created a function like below. But I don't know what to do next. The sencha documentation has methods like ajax, proxy for MVC architecture, which I am not using. function checkJson(username, password){ //What

Simple Line Chart with Dates?

这一生的挚爱 提交于 2019-12-11 16:06:48
问题 I'm trying to use ExtJS 4 to draw three points on a line chart but none of the points are displaying. I'm not getting any Javascript errors in the console. Can anyone tell me what I'm doing wrong? var chartArray = [ {"date1":"2012-01-22", "count":1}, {"date1":"2012-01-23", "count":2}, {"date1":"2012-01-24", "count":3} ]; Ext.onReady(function() { var store1 = new Ext.data.ArrayStore({ fields: [ {name: 'date1', type: 'date', dateFormat: 'Y-m-d'}, {name: 'count', type: 'data'} ], data:

How to access the ID of a collapseTool in a grid?

会有一股神秘感。 提交于 2019-12-11 14:26:14
问题 I'm trying to access the ID of the collapseTool in a grid, but I'm not having any luck. Here's a pic of my console when I simply console out the grid. console.log(grid); and I would like to get the Id tool-1782 I've tried: console.log(grid.collapseTool) but it prints undefined I'm working with an accordion that has grids inside of it, and I would like to get the id of each collapse button. Example: 1) Id of first button: tool-1782 2) Id of second button: tool-1783 3) Id of third button: tool