extjs

ExtJS Maximum call stack size exceeded when reordering tree

岁酱吖の 提交于 2019-12-24 16:23:02
问题 I'm reordering the hierarchy of a tree with drag and drop. After moving multiple nodes I get the error Uncaught RangeError: Maximum call stack size exceeded . The error appears in NodeInterface.js . The updateInfo function crashes in the following line for (i = 0; i < childCount; i++) { children[i].updateInfo(commit, childInfo); } What could cause this problem? The following code shows how I implemnted the drag and drop and reordering in ExtJS 6.5.2. Maybe you can find what's causing the

ext.net how can i use more than data_index on a same Column

佐手、 提交于 2019-12-24 16:13:46
问题 i have the following : <ext:RecordField Name="ID" /> <ext:RecordField Name="UserName" /> <ext:RecordField Name="FirstName" /> <ext:RecordField Name="LasttName" /> i want use FirstName& LasttName on : <ext:Column ColumnID="Name" Sortable="false" DataIndex="????" Resizable="false" MenuDisabled="true"/> What i need is to use more than data_index on a same Column is that possible, how can i achieve that? thanks in advance! 回答1: Try something like this: //In your head: <script type="text

How to access plugin in ExtJs MVC

梦想的初衷 提交于 2019-12-24 15:40:29
问题 I am trying to add a toolbar to my grid with an "Add New Record" button. The code example provided by Sencha is here: var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { clicksToMoveEditor: 1, autoCancel: false }); // create the grid and specify what field you want // to use for the editor at each column. var grid = Ext.create('Ext.grid.Panel', { store: store, tbar: [{ text: 'Add Employee', iconCls: 'employee-add', handler : function() { rowEditing.cancelEdit(); // Create a model

Sencha touch application loader keeps blinking

陌路散爱 提交于 2019-12-24 15:38:54
问题 I just setup an all basic sencha touch application. Just did sencha generate app *Name* *Directory* . The app is generated without any error, but when I start the server and load the application in Chrome (just updated to the latest version), I get a blue screen with three blinking dots. In the JS console, there is this: Uncaught TypeError: Object [object Object] has no method 'append'", occured in sencha-touch.js Is this a common issue? Did I do anything wrong? The app is generated with

how to show grouped value in Extjs 4 grid groupHeader?

老子叫甜甜 提交于 2019-12-24 15:33:23
问题 I have a grid like this var groupingFeature = Ext.create('Ext.grid.feature.Grouping', { groupHeaderTpl: 'Invoice: {invoice_number} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})' }); { xtype : 'grid', store : Ext.getStore('invoice_items'), columns : [ { text: 'Invoice Number', flex: 1, dataIndex: 'invoice_number', hidden:true }, { text: 'Item Code', flex: 1, dataIndex: 'item_code'}, { text: 'Description', flex: 1.5, dataIndex: 'description' } ], features: [groupingFeature] } im

Combo box loads too slow

China☆狼群 提交于 2019-12-24 13:42:40
问题 My page loads super slow right now. Basically, i want to pre-populate the combo boxes that i have. Right now, it pre-populates each one individually and then selects the default value. This is so slow. The user will have to wait about a minute before the page is fully loaded. I'm grabbing the values to populate the combo boxes from a server. The values to pre-select the combo box value are received in an array through the response variable. How do i speed this whole process up? Code is below:

Trying to pass values to local storage using Sencha Touch 2.1.1

こ雲淡風輕ζ 提交于 2019-12-24 13:34:02
问题 Can anyone tell me why this bit of code doesn't create an entry into localstorage? myLocalStore.load(); var now = new Date(); var cardId = (now.getTime()).toString() + (this.getRandomInt(0, 100)).toString(); var entry1 = { id: cardId, dateCreated: now, title: 'The Title', narrative: 'the Text' }; var newRecord = new PinYin.model.Default(entry1); myLocalStore.add(newRecord); myLocalStore.sync(); console.log(entry1); The console outputs Object{id: "136575772251069", dateCreated: Fri Apr 12 2013

extjs4 get instance of view in controller?

亡梦爱人 提交于 2019-12-24 13:30:36
问题 I am trying to get an instance of my view within the controller. How can I accomplish this. The main reason I am trying to do this is that I have a grid in my view that I want to disable until a selection from a combobox is made so I need to have access to the instance of the view. Help? My controller: Ext.define('STK.controller.SiteSelectController', { extend: 'Ext.app.Controller', stores: ['Inventory', 'Stacker', 'Stackers'], models: ['Inventory', 'Stackers'], views: ['scheduler.Scheduler']

Combobox paging toolbar doesn't respond to page size

☆樱花仙子☆ 提交于 2019-12-24 13:26:15
问题 I'm having some problems with combobox for selecting items from database. Since more than 100 items are loaded, I use paging toolbar at bottom of combobox. Now if pages size is set to 5 or 50, the paging toolbar shows page 1 of 20 or 1 of 2 depending on pagesize, but combobox shows all 100 items, and just copy them to next page like page size is not set at all. I tried several thing but nothing seems to make it work. What's wrong? { xtype: 'combobox', queryMode: 'local', valueField: 'id',

jersey webservice returns a 415 when executing a PUT from Ext.Ajax.request

只谈情不闲聊 提交于 2019-12-24 11:58:44
问题 So, I've got a pretty simple RESTful jersey webservice, and I'm wanting to call it from my javascript code. I have no problem executing a GET request, but for some reason, when I execute a PUT, I get back a "415 Unsupported Media Type" error. Any idea what I'm doing wrong? Here's my webservice : package servlet; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.xml