extjs

Create Multiple Comboboxes dynamically in ExtJS 3.0

主宰稳场 提交于 2020-01-07 05:40:13
问题 i am trying to create a comboBox on a form inside a for loop but i am unable to do so, can someone help? i found this code on stackoverflow however this doesn't seem to work on my version of EXTJS which is 3.3 stackoverflow code: for (var i=0; i < 8; i++) { Ext.create('Ext.form.ComboBox', { fieldLabel: 'Combobox '+i, store: ['Option1','Option2'], //better to use a dynamic store renderTo: Ext.getBody() }); }; My Code: var questionStore2 = null; example.SurveyFieldDefaultWindow = Ext.extend(Ext

Unable to bind the id of the combobox field on grid update

痞子三分冷 提交于 2020-01-07 04:57:09
问题 I'm trying update the grid with the edited values. When I update the bus type and give update, the binded value in the back end is valueFied that's the id, But when I update only time and name the bus type cell renders the displayField which fails the gridupdate at the back end saying Integer value error, since the display field is the string , How would i always render or bind the valuefield to the back end no matter what i update and display always the type name, here's the fiddle to try

How can I attach an react to user clicking on tabs in Ext.TabPanel

て烟熏妆下的殇ゞ 提交于 2020-01-07 04:54:31
问题 When I want to react to the user selecting a row on a grid, I use this: var grid = new Ext.grid.GridPanel({ region: 'center', ... }); grid.getSelectionModel().on('rowselect', function(sm, index, rec){ changeMenuItemInfoArea(menuItemApplication, 'you are on row with index ' + index) }); how can I attach the same functionality to tabs? something like this: var modules_info_panel = new Ext.TabPanel({ activeTab: 0, region: 'center', defaults:{autoScroll:true}, listeners: { 'tabclick': function

Extjs6 Excel like grid filters with store

99封情书 提交于 2020-01-07 04:18:10
问题 I am trying to create a complex filter for a grid. I want the following general behavior: The filters have a different store than the grid Apply filter on column A The grid is filtered based on my selection The filter in column B will show the available items Also, the grid has a button that clears all the filters and more, remove the checked items from the filters. Based on this link I've tried to do something similar. I've created also a fiddle. Regarding the fiddle, I have some question: 1

Controller must either provide JsonResult or redirect to view

江枫思渺然 提交于 2020-01-06 20:09:19
问题 I have an ExtJs formpanel with standardSubmit: false. On submit, the controller will validate the formdata since some validation will take place on the server (for example a check if the name is unique). If the provided entity is invalid, a JsonResult is sent to the client to notify the user which fields are invalid. That works perfectly. If the entity is valid, it will be stored in the database and the controller must redirect the user to a specific view. The result is that the HTML provided

Extjs form.reset() not working as trackResetOnLoad is true

我们两清 提交于 2020-01-06 16:10:35
问题 I have a situation like this. When I load a form and set values as 'form.setValues(MyObject)', I do not want the form to get dirty. In Order to do that I have set the config 'trackResetOnLoad:true'. My problem is I need to reset the form to its fresh state before I move to new form. form.reset() won't work as the trackResetOnLoad will set the 'originalValue' of each field. Any Idea to reset the page without looping through each field of the form and reset it which brings me huge overhead as

How to upgrade Sencha Touch from 2.0.1.1 to 2.4?

给你一囗甜甜゛ 提交于 2020-01-06 14:13:30
问题 I would like to know if is possible to update a project done with Sencha Touch 2.0.1.1 to Sencha Touch 2.4. Any idea is welcome thanks! 回答1: You just need to run a command line from your project folder: sencha app upgrade <Path to Sencha Touch 2.4 SDK> I hope this will help you. ------------ EDIT --------------- Make sure: 1) You are running this command from inside the project folder. 2) Cross check the path mentioned. 来源: https://stackoverflow.com/questions/26099278/how-to-upgrade-sencha

How to use XTemplate in ExtJS

纵然是瞬间 提交于 2020-01-06 13:59:33
问题 I'm trying to use XTemplate when I define a view, although I dont know if I'm using it properly, this is my code: East.js Ext.define('MyApp.view.main.East', { extend: 'Ext.panel.Panel', alias: 'widget.eastView', requires: [ 'MyApp.view.main.east.Notifications' //'MyApp.view.main.east.Actions' ], layout: { type: 'vbox', align: 'stretch' }, border: false, defaults: { flex: 1, border: false }, items: [{ store: myStore, tpl: notiTpl }, { html: 'Actions' }] }); Ext.define('Notifications', { extend

Extjs4 Sending accented characters to the server

 ̄綄美尐妖づ 提交于 2020-01-06 11:23:02
问题 I am working with Extjs4. I am trying to send accented characters to server. I was trying to send ó. And what I was receiving at the server side was ó. I am sending it using Store proxy. In store proxy, I have added headers: { 'Content-Type': 'charset=utf-8' } Still it did not send the accented characters properly. How should I send accented characters to the server? Thanks in advance! 回答1: user2316489, IMHO this is a problem with your server configuration, rather than a front-end

Extjs4 Sending accented characters to the server

天涯浪子 提交于 2020-01-06 11:20:30
问题 I am working with Extjs4. I am trying to send accented characters to server. I was trying to send ó. And what I was receiving at the server side was ó. I am sending it using Store proxy. In store proxy, I have added headers: { 'Content-Type': 'charset=utf-8' } Still it did not send the accented characters properly. How should I send accented characters to the server? Thanks in advance! 回答1: user2316489, IMHO this is a problem with your server configuration, rather than a front-end