extjs

ExtJs. Set rowediting cell value

拜拜、爱过 提交于 2019-12-23 12:46:14
问题 I have grid with RowEditing plugin. Editor has 2 columns: one with combobox and another with disabled textfield. I need to change textfield value after changing the combobox value. I have combobox listener: listeners = { select: function (combo, records) { var editorRecord = myGrid.getPlugin('rowEditPlugin').editor.getRecord(); editorRecord.data["SomeCol"] = "SomeValue"; } } But value in the textfield does not refresh until another calling of roweditor. I need just to set text value to the

Extjs 5. Ext.application is not a function. Why?

眉间皱痕 提交于 2019-12-23 10:25:41
问题 I get an error in console: Ext.application is not a function . My index.html file contains this code: ... <link rel="stylesheet" type="text/css" href="/ext-5.0.1/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css" /> <script src="/ext-5.0.1/ext-all-debug.js"></script> <script type="text/javascript" src="app.js"></script> ... While app.js has just this code, taken from one demo: Ext.application({ name: 'AM', appFolder: 'app', launch: function() { Ext.create('Ext.container

ExtJS and page authorization (server-side)

前提是你 提交于 2019-12-23 10:25:13
问题 I'm looking for information on how to implement secure pages using ExtJS 4. By secure pages I mean the user will log into our website using Siteminder (SSO) and so we will have the user's identity. Then we would determine what roles the user would have by making a database/LDAP call and only render those views/components that the user has access to. Several questions come to mind: 1.) Of course I would expect we would do the authorization check prior to rendering the pages on the server-side,

Access to http status code from Ext.data.Store

假装没事ソ 提交于 2019-12-23 10:21:48
问题 I have an http API which (shockingly new technique) reacts on different errors setting different response statuses. The question is - while using Ext.data.Store with some XMLHttpRequest-inside proxy, what is the best way to handle this statuses? As far as I can understand, "load" event does not pass status directly, as well as "exception", and the last one actually doesn't even trigger when 4** status is received. So, as I can see from code xhr instance is hidden from Ext.data.store, so the

Missing parameters with RESTful request when upgrading to Grails 2.3.0

拈花ヽ惹草 提交于 2019-12-23 10:16:19
问题 I am using Grails with RESTful to develop my web application. Everything works fine, till I upgrade my application to Grails 2.3. Here is my UrlMappings: I still send request, submit or do some other things normally, but in POST, PUT requests, the parameters are missing. Server just recognize only the parameters I put on the URL directly, but the remain I enclose in form or model when submit cannot be found in the "params" variable. He is my UrlMappings: class UrlMappings { static mappings =

items not loading in sencha touch 2

筅森魡賤 提交于 2019-12-23 10:06:10
问题 i have a sencha touch application that uses a tabpanel, a beta version of this application loads all items of the tabpanel and displays it. with so many items, switching between tabs became slower for optimization my idea is to load items only when a certain panel is activated after showing a loading mask. i was able to make it work on first click but when i switch to the same tab another time it's not being filled or at least items are not being showed. no exceptions are thrown. Ext

How to get user input value from Ext window textfield?

二次信任 提交于 2019-12-23 09:31:02
问题 I have a webpage with buttons designed in Extjs. When the user clicks 1 of these buttons, a window appears with a textfield and a next button. Clicking the next button will load another window with fieldsets, hiding the first one. The number of fieldsets in the second form is to be adjusted according to the user input in the first window. I am trying to use a for loop for this. The code I am using as follows: var win1, win 2, j; var win1items = new Ext.form.FormPanel({ //snip items: [{ xtype:

Extjs how to set 100% height for vbox panel

柔情痞子 提交于 2019-12-23 09:10:10
问题 Hi~, I want to set 100% left over height to panel 2. but I don't know how to do.. here is my test code, { title : 'EAST', region : 'east', layout : 'vbox', layoutConfig : { align : 'stretch' }, bodyStyle : 'border:1px solid blue', width: 300, items : [ new Ext.Panel({ title : 'Panel 1', border : true, layout : 'fit', height : 250, html : 'PANEL 1 AREA' }), new Ext.Panel({ title : 'Panel 2', border : true, bodyStyle : 'border:1px solid red', layout : 'fit', html : 'PANEL 2 AREA' }) ] } I tried

Is it possible to show more than one summary row in gridpanel of extjs?

瘦欲@ 提交于 2019-12-23 08:56:47
问题 Following is my code to show a grid panel with total cost summary. I want to show another summary row with average. So any help? Ext.require(['Ext.data.*', 'Ext.grid.*']); Ext.onReady(function() { Ext.define('NewEstimate', { extend: 'Ext.data.Model', fields: ['description', 'cost'], validations: [{ type: 'length', field: 'description', min: 3 }, { type: 'int', field: 'cost', min: 1 }] }); var rowEditing = Ext.create('Ext.grid.plugin.RowEditing'); var store = Ext.create('Ext.data.Store', {

Gridpanel auto resize on window resize

。_饼干妹妹 提交于 2019-12-23 08:49:22
问题 I'm using the array-grid extjs example to try and fit a gridpanel into a container window. The problem is on resizing the container window, the gridpanel doesn't automatically fit the new size. As I understand it that's how it's supposed to work. Here's the link to the example: http://www.extjs.com/deploy/dev/examples/grid/array-grid.html What I've done is changed the following.. // Added to gridpanel config layout: 'fit', viewConfig: { forceFit: true } // Window container var gridWindow =