extjs5

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

Get row from a nested grid

僤鯓⒐⒋嵵緔 提交于 2019-12-11 14:26:41
问题 i have a grid nested, i want to get the row inside one of them but i cant. This is the gridpanel code: Ext.create('Ext.grid.Panel', { renderTo: 'amenazas-grid', store: amenazaStore, width: 748, height: 598, title: '<bean:write name="informesAGRForm" property="nombreActivo"/>', plugins: [{ expandOnDblClick: false, ptype: "subtable", pluginId: 'subtable', headerWidth: 24, columns: [{ text: 'id_amenaza', dataIndex: 'id_amenaza', hidden: true, width: 100 }, { width: 100, text: 'id_salvaguarda',

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

How to Bind dataIndex to Select All check box

情到浓时终转凉″ 提交于 2019-12-11 11:11:39
问题 I am trying to bind checkbox field to gird with select all options - xtype: 'grid', store: { type: 'webapi', api: { read: 'api/Report/GetIfo' }, autoLoad: true, }, columns: [ { header: 'Name', dataIndex: 'first_name'} ], selModel: { selType: 'checkboxmodel', //dataIndex:'flag', //showHeaderCheckbox: true } I am trying to bind the dataIndex to it so that when grid is loaded, respective checkbox will be selected. I tried by using selModel: { selType: 'checkboxmodel', //dataIndex:'flag', /

Failed to execute 'querySelectorAll' on 'Element' in ExtJS 5

风格不统一 提交于 2019-12-11 08:49:13
问题 I am trying for using Ext.dom.Query.Select method to find all divs which having class name square and highlightedReactangle.Same method was working with extjs 4 , but after up grading to extjs 5 it start throwing error. Uncaught SyntaxError: Failed to execute 'querySelectorAll' on 'Element': 'div:any(div.square|div.highlightedReactangle|div.highlightedReactangleIE|div.pin|div.redCircleCount|div.stampPreviewCls)' is not a valid selector. The statement I'm using to find related div is, this.el

Form with textfield and grid: send all values to the server

匆匆过客 提交于 2019-12-11 05:17:14
问题 In create and update forms, it is sometimes necessary to give the user the ability to dynamically add fields to values of the same type (more than one phone, more than one address, etc.). I'm exploring several possibilities to do this. One of them is to use a grid as a form field. However, I have doubts about how best to implement this idea, especially on how to send all the form field values (textfield and grid) to the server (and then how to load them later in the form to edit). Fiddles

Uncaught TypeError: Cannot read property 'isSynchronized' of undefined

折月煮酒 提交于 2019-12-11 03:49:11
问题 I have a problem with sorting my ExtJS grid. I'm using Ext JS version 5.1.1.451. The grid loads well but when I try to sort the columns I get the "Uncaught TypeError: Cannot read property 'isSynchronized' of undefined" error. The method addCls is triggered on mouse movement and when the error occures, me.getData() returns undefined , where me is constructor $observableInitialized: true component: constructor config: Object destroy: () {} dom: null el: null events: Object hasListeners: statics

Line Chart Not Connecting Dots (Sencha-Charts Package)

折月煮酒 提交于 2019-12-11 03:18:58
问题 I'm having issues with an extjs Cartesian chart component whereby it is failing to draw a line between two points. I've narrowed the issue down to missing interval-data for a step in a particular series but haven't found a good solution. In the following - simplified - example, you will see a break in the red line where data exists for a marker on the blue line at interval "three" - which sits between two red markers. I'm trying to find a way to draw straight from the red marker at interval

ExtJS error in nested grids : Cannot read property 'isGroupHeader' of null

﹥>﹥吖頭↗ 提交于 2019-12-10 21:31:19
问题 whenever i expand or collapse row in nested grid I get the following error : "Uncaught TypeError: Cannot read property 'isGroupHeader' of null" google gave me this url , but it doesn't seems to work in 5.1 , any idea how to convert it to solve 5.1 problem ? http://blog.kondratev.pro/2014/08/getting-rid-of-annoying-uncaught.html Here is fiddle example for the error : https://fiddle.sencha.com/#fiddle/g5b 回答1: This happens because grid cell or cell editor event (mouseover, click or whatever) is

Pinch event on iFrame Extjs 5

寵の児 提交于 2019-12-10 11:55:31
问题 I want to detect pinch event on an IFrame (Extjs 5 Component). What's wrong with this code?? Ext.create('Ext.ux.IFrame', { autoScroll: true, src: 'resources/docs/doc1.html', cls: 'iframeStyle', listeners: { pinch: function (event) { alert('event.scale= ' + event.scale); } } }) 回答1: Out of the box, Ext.ux.Iframe does not have "pinch" as an event. Only the events listed on the API can be added using the "listeners" syntax. http://docs.sencha.com/extjs/5.0/5.0.1-apidocs/#!/api/Ext.ux.IFrame You