extjs

Sencha Touch do not set scale and allow scrolling and resize on iPhone or iPad

怎甘沉沦 提交于 2019-12-13 00:45:55
问题 I am playing around with Sencha Touch, especially with examples like http://dev.sencha.com/deploy/touch/examples/ However I am faced with a problem, when using the component the scale is set on the iPhone and the user cannot scroll the page or zoom in or out. How may I disable these settings as I would like to have the carousel on a page which can be scrolled, and zoomed in/out. Thanks. 回答1: [Sencha person] You can't zoom in or out of a Sencha component. Having fixed UI Chrome is one of the

Is it possible to use an xtype inside an ExtJS template

て烟熏妆下的殇ゞ 提交于 2019-12-13 00:45:14
问题 I am wondering if I can do something like this in ExtJS. I am creating my own button as an xtype and want it to be used in the table row I am creating. testTpl: Ext.DomHelper.createTemplate( { tag: 'tbody', children: [ { tag: 'tr', cls: 'test-row', children:[{ tag: 'td', cls: 'test-table-cell test-class1', html: '{value1}' }, { tag: 'td', xtype:'myxtype' cls: 'test-table-cell test-class2', html: '{value2}' }] }] }); 回答1: Its not possible to place ExtJS components inside of a extjs template.

ExtJS Grid Paging: next button is disabled!

左心房为你撑大大i 提交于 2019-12-13 00:23:37
问题 I created a basic grid that has a paging toolbar. For some reason when I load up at index 0, the Next Page button is disabled, even though the text says "Displaying page 1 of 5". If I choose anything higher than 0 in the load params for the store, it allows me to page forward and back, but it does not properly display the max # of pages and if I go back to the first page, the next button is once again disabled. Any ideas? function getBugGrid(activityPanelWrapper){ var pageSize = 5; var

ExtJs 4: Component with Ext.ux.upload plugin has stopped working after rewriting in MVC style

隐身守侯 提交于 2019-12-13 00:22:46
问题 I've had working button with upload plugin. When my application has grown, I've rewritten this button in MVC way (just removed Ext.create, renderTo and added Ext.define) and it stopped working. Button is shown but has no plugin action (os window with file selection, etc.). Could you advice me something please? Here is working part of code in simple "one file" style: ObjectPhotosTab = Ext.create('Ext.Panel', { id : 'ObjectPhotosTab', items : [ Ext.create('Ext.ux.upload.Button', { text :

What is the purpose of classnames in angle brackets in definitions?

耗尽温柔 提交于 2019-12-12 23:51:50
问题 In another question here on Stack Overflow (this one) I have seen this piece of code: Ext.define("App.view.leaders.MyViewName", { extend: 'App.view.basePopup', xtype: 'MyViewName', config: <Ext.form.IPanel>{ scrollable: 'vertical', items: [ { xtype: 'fieldset', title: 'Add New Auto Asset', instructions: '<hr class="separate" />', items: [ <Ext.field.ISelect>{ xtype: 'selectfield', label: 'Borrower Position', store: 'BorrowerPositionSelectorStore', }, <Ext.field.ISelect>{ xtype: 'selectfield',

What is the best way to create a list from the rows of a grid

与世无争的帅哥 提交于 2019-12-12 22:50:33
问题 In my app there are two drag and drop grid. To create a list, you drag rows from the first to the second grid. What is the best way to send this list of rows (second grid) for the server to then be displayed in another grid? I tried to sync and setDirty (true), but "Ext.data.Model # setDirty" is deprecated. var grid = this.lookupReference('gridRef'); var store = grid.getStore(); store.each(function(record){ record.setDirty(true); }); store.sync(); I tried, unsuccessfully: var grid = this

ExtJS 5 Pie Chart Not Rendering Using Remote Store

ぐ巨炮叔叔 提交于 2019-12-12 20:19:57
问题 I have a basic pie chart in ExtJS 5. The issue I am having is that the chart renders with a static JsonStore but won't render properly with a remote data.store? Here is my code: View (Chart) Ext.define('APP.view.core.graphs.Countytotals', { extend: 'Ext.Panel', alias: 'widget.countytotalchart', id: 'countyTotalsGraph', width: 650, initComponent: function() { var me = this; // Doesn't work? var countyStore = Ext.create('APP.store.Countytotalsgraph'); // Works var store = Ext.create('Ext.data

ExtJs 4, what is the right way to Delete control from container and Remove it from the memory?

纵饮孤独 提交于 2019-12-12 19:18:55
问题 The question is simple but i can't find a good and clear answer for it. What is the right way to: Delete control from container Remove it from the memory, in ExtJs 4? 回答1: Ext.AbstractContainer.remove method can't be far off. remove( Component/String component, [Boolean autoDestroy]) : Void Removes a component from this container. Fires the beforeremove event before removing, then fires the remove event after the component has been removed. Parameters component : Component/String The

how to override Extjs Timefield to show custom max value

本小妞迷上赌 提交于 2019-12-12 17:28:17
问题 I want to display 11:59 as the maxValue for ExtJs timefield with increment=30. I set maxValue as "23:59" but it did not work, and shows 23:30 as the maximum value. Can anyone specify which function/code to override to display 11:59 as the maximum value? Thanks in advance. 回答1: Try overriding 'createStore' function of 'Ext.picker.Time' to include 23:59 in the list, so that if the maxValue is set to 23:59 it will get displayed. 来源: https://stackoverflow.com/questions/25379403/how-to-override

ExtJS Ajax Request Timeout Has No Affect with Internet Explorer

若如初见. 提交于 2019-12-12 17:23:03
问题 I am using ExtJS 3.4. I have a long running asynchronous process that I need to wait until it is finished. It works fine for Firefox but Internet Explorer will not wait. How do I solve this problem? Here is what I have for the client side code: function SaveUser(form, myDataObject, url) { if (form.isValid()) { StatusMessage.show('Please wait. New User Registrations may take up to one minute to complete.'); Ext.Ajax.request( { url: url, method: 'POST', timeout: 30000, params: myDataObject,