extjs

How fix cross origin error in extjs6?

…衆ロ難τιáo~ 提交于 2019-12-25 06:58:51
问题 I'm developing an application using Extjs-6.0.0 in client side. I run client side application in port 80 . My server side application running in port 8084 . When I submit a form with form.submit , the follow errors are occur. XMLHttpRequest cannot load localhost:8084/GeoAd/ad/add. Cross origin requests > are only supported for protocol schemes: http, data, chrome, chrome-extension, > https, chrome-extension-resource. chrome-extension, https, chrome-extension-resource. Uncaught NetworkError:

Ext js Editor Grid Disable Multiple Row Selection

给你一囗甜甜゛ 提交于 2019-12-25 06:51:12
问题 my grid allowing to select multiple row selection that is once i click on cell and press shift+arrow down button it allows me to select next set of records i wanted to disable this functionality how it can be done,on grid level how to catch keypress events and return false once shift+arrow down button is pressed 回答1: For ExtJS 3.x add this to the grid properties: selModel: new Ext.grid.rowSelectionModel({singleSelect:true}) 回答2: Grids behave as you want by default. Make sure you have NOT set

How to get plugin from component using component query on Extjs 4.1?

半世苍凉 提交于 2019-12-25 05:26:07
问题 I want to add event listener to plugin on Controller.like http://docs.sencha.com/ext-js/4-1/#!/api/Ext.app.Controller It seems different to get plugin using component query than normal component. Is it possible to get plugin from component using component query? Here is my component Ext.define('App.view.file.List',{ rootVisible: false, extend:'Ext.tree.Panel', alias:'widget.filelist', viewConfig: { plugins: { ptype: 'treeviewdragdrop', allowParentInsert:true } }, //etc ... Can i get

SDK 2: Example of a settings dialog

孤者浪人 提交于 2019-12-25 05:24:07
问题 Do you have an example posted of a SDK 2 app that adds an entry to its "Gear" menu and allows the user to save settings to a preference object via a dialog window? 回答1: The short answer is that right now that is not possible. We are trying to figure out the best way to allow users to interact with setting from inside of a custom App. Since each App is sandboxed inside of an IFrame no App code can interact with the gear menu (since it is outside of your frame). In the future we are looking

adding views using EXT sdk store issue

我的梦境 提交于 2019-12-25 05:16:26
问题 I have the following app.js file. When i run the command with out the "require" it works but does not include the views. When i add the required line i'm getting "store is undefine". I guess this is because the store are not defined at that point. So what is best play here? sencha create jsb -a http://mysite.local/ext/cutter/app/index.html -p app.jsb3 app.js Ext.Loader.setConfig({ enabled: true }); Ext.Loader.setPath('App', '/ext/Cutter/app'); Ext.Loader.require(['App.view.ViewCutter']); Ext

Textfield to pop out a keyboard which contains the phone keypad/numbers only

◇◆丶佛笑我妖孽 提交于 2019-12-25 05:08:43
问题 I have created a textfield as follows; { xtype:'textfield', name:'telephone', label:'Telephone' } Instead of popping up the default keyboard which has characters and numbers. I need the keyboard to only display the phone keypad (Only numbers). Since the textfield is about getting the phone number of the user, there's no point displaying a keyboard with characters. 回答1: You might want to try using numberfield instead. 回答2: Using property component of textfield: { xtype:'textfield', component:

Creating new data using POST dosen't work in laravel 5

依然范特西╮ 提交于 2019-12-25 04:49:28
问题 I've got a problem moving from laravel 4 to laravel 5. I hae a test example that i downloadet some time ago in laravel 4 and it works prefectly. But when i wrote the same example it stops at some point. I'm using ExtJS 5 for framework. Controller: <?php namespace App\Http\Controllers\books; use App\Http\Requests; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class BookController extends Controller { public function load() { $books = DB::table('books')->select('id','title',

load a tree : ExtJs - Jayrock

一曲冷凌霜 提交于 2019-12-25 04:43:23
问题 im trying to build a treepanel (or just a simple tree i just need it to work) and load it with data from database here is my code to build the tree var objHandler = new Interact(); var treestore = new Ext.data.TreeStore ( { root:{ id:'root_node', nodeType:'async', text:'Root' }, proxy:{ type:'ajax', url:'myUrl' } }); function ReadTree() { try { objHandler.ReadAssets(function (serverResponse) { if (serverResponse.error == null) { var result = serverResponse.result; if (result.length > 2) {

How can I programmatically set column filters?

我是研究僧i 提交于 2019-12-25 04:35:16
问题 I am working on a Ext.js 5 web applications. I have a Ext.grid.Panel and I have selModel: { type: 'spreadsheet' }, Here is a screen shot of what I have now: I would like to be able to set the filter on the 'Status' column to 'Ready'. I am not sure what I need to do. Thanks! UPDATE: Thanks to DrakeES for pointing me in the right direction. What I needed to do was add this code ... 1 /*global */ 2 Ext.define("Requestor.view.main.RequestGrid", { 3 extend: 'Ext.grid.Panel', // Our base class. A

Placing JSON response elements into a store- Ext JS

只谈情不闲聊 提交于 2019-12-25 04:28:17
问题 I'm wondering what the best way would be to load elements of a JSON response into a store. What I have: jQuery ajax request var foodRequest = $.ajax({ url: "MyServlet", type: "post", cache: false, dataType: "json", data: JSON.stringify(searchquery), error : function() { alert ('ERROR!! Please re-enter the search criteria and try again.'); } }); ajax response { "Foods":[ { "Food":{ "name":"Spaghetti", "id":"001", "attributes":[ { "attrname":"Price", "attrvalue":"18.99" }, { "attrname":