extjs

Extjs 4 Session Management

我只是一个虾纸丫 提交于 2019-12-11 10:56:26
问题 I am having web based application in which user session has to be managed management. In app.js I have used launch config as : launch: function(){ Ext.create('myproject.view.LoginForm') } LoginForm : will show log in dialog and invoke login controller for communicating with server for authenticating the credentials provided by the user. So when ever user refreshes the page Extjs is asking for log in that is because of I am not checking the session in here, How should be the session details

viewport autoMaximize causes Timeout waiting for window.innerHeight to change on iPhone

a 夏天 提交于 2019-12-11 10:37:17
问题 I have a problem with my app in that we are trying to get as much real estate on the screen as possible and therefore trying to hide the address bar when it is not in use. I can achieve this by setting the autoMaximize value to true. My problem is when I navigate to this page I get an error Timeout waiting for window.innerHeight to change. When this error is show I have a white page on my phone but if I then press the refresh button it will actually load the page. I have attempted to use a

What event to listen on accordion panel change in extjs?

匆匆过客 提交于 2019-12-11 10:28:24
问题 What event to listen when a accordion panel is clicked and becomes visible? Any code example will be great help. Thanks! 回答1: In ExtJS, Accordion is a layout which we will be using on Panel. Here is a sample example from sencha docs.(As you didn't mention version of ExtJS, I am assuming v4.0) : Ext.create('Ext.panel.Panel', { title: 'Accordion Layout', width: 300, height: 300, layout:'accordion', defaults: { // applied to each contained panel bodyStyle: 'padding:15px' }, layoutConfig: { //

Handling the layout dynamically

别等时光非礼了梦想. 提交于 2019-12-11 10:25:14
问题 Below is the code I tried: <script type="text/javascript"> Ext.require(['*']); Ext.onReady(function() { Ext.Loader.setConfig({ enabled: true }); var totalScreenWidth = screen.availWidth; var totalScreenHeight = screen.availHeight; Ext.QuickTips.init(); var viewport = Ext.create('Ext.ViewPort', { id: 'border-example', layout: 'border', items: [ Ext.create('Ext.Component', { region: 'north', height: totalScreenHeight * 0.05, autoEl: { tag: 'div', html: '<p><center>UI Demo</center></p>' } }), {

Thousands separators in Ext.form.NumberField

ぐ巨炮叔叔 提交于 2019-12-11 10:24:55
问题 I want to override some config options of Ext.form.NumberField, but I don't find something like a "thousands separator". Is there a way to define this for NumberFields in Ext? Or have I had to write my own function to provide this functionality? 回答1: On closer inspection according to the forums/devs, NumberField doesn't support formatting. Numbercolumn on a grid does. Their suggestion is to use a TextField and either format the value serverside before displaying it, or to apply a function on

Disable Sencha script loader cache busting but only while developing/debugging

强颜欢笑 提交于 2019-12-11 10:18:30
问题 I'm working with ExtJS 4.x and Sencha Architect 2.2 but this should be relevant to later versions and any application that uses the Ext.Loader class to dynamically load scripts, including Sencha Touch. By default Ext.Loader adds a ?_dc=... cache busting parameter to make sure that the latest version of each script is loaded into the browser. When deploying to a production or beta-test environment this is a good thing as it ensures the user/tester gets the latest script each time you deploy

Second File Upload fails in ExtJS 6, works in ExtJS 4

拜拜、爱过 提交于 2019-12-11 10:06:27
问题 Very low-level file upload: dockedItems: [{ xtype: 'toolbar', dock: 'top', items: [{ xtype: 'form', items: [{ xtype: 'filefield', fieldLabel: 'Select file', listeners: { change: { fn: me.onFilefieldChange, scope: me } } }] },{ ... onFilefieldChange: function(filefield, value, eOpts) { var form = filefield.up('form').getForm(); form.submit({ url: APIURI+'FileUpload', headers: {'Accept':'application/json','Content-Type':'application/json'}, waitMsg: 'Uploading', success: function(fp, o) { var

Refreshing grid not working after store.sync();

China☆狼群 提交于 2019-12-11 09:52:47
问题 I have added successfully data to server and get json back so that I have success = true. After adding, my grid doesn't sync data (just after refreshing with F5). In handler for success I've put: var store = Ext.getStore('Workers'); store.sync(); I've checked and I really get store Workers but the sync is not working. I think that when I reload data in store, data in grid should be also reloaded. I've tried this too: Ext.getCmp('workerlist').getView().refresh(); I've tried all examples from

How to change the background color of the grouped heading in List in sencha touch 2?

隐身守侯 提交于 2019-12-11 09:35:46
问题 I have a list with 2 groups. I want to override the default background color of the headings given to the group in the list. How to change the background color of the grouped heading in List in sencha touch 2? 回答1: You can easily do this by adding ur own class to the list and the find the class names that define the styles for the headers using the chrome developer tools. Add cls to the list like { xtype: 'list', itemTpl: '<div class="contact2"><strong>{firstName}</strong> {lastName}</div>',

How to add an image in textfield in sencha touch [closed]

断了今生、忘了曾经 提交于 2019-12-11 09:31:55
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I want to add a small image in the text field in sencha touch. For example a small user icon in the username text field. 回答1: Create your textfield like this: { xtype: 'textfield', cls: 'username', fieldLabel : 'Username', // works for ExtJS label : 'Username' // works for Sencha Touch } and add