extjs

pass two id s in extjs 4 tree multiSelect and pass one id in single click

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:08:49
问题 When a user selects one or many rows in my tree, I would like to set the row's IDs onto the url of my store proxy. Here is my current code: var treePanel = Ext.create('Ext.tree.Panel', { id: 'tree-panel', title: 'Taxonomy', region:'west', collapsible: true, split: true, multiSelect: true, height:'100%', width: '20%', minWidth: 100, rootVisible: false, autoScroll: true, store: store, viewConfig: { allowCopy: true, plugins: { ptype: 'treeviewdragdrop', appendOnly: true, ddGroup: 'selDD' } } });

how to navigate to previous page without refreshing it.in HTML

本小妞迷上赌 提交于 2019-12-12 03:06:15
问题 HI i have a ExtJS code on the front end. the drop downs on this page are loaded dynamically thru web-service call to 3rd party service. i have navigated from this page to the results page. Now in results page i have a button which allows the user to go back to previous page. but all the data in the drop down should be retained. i tried window.history.go(-1) and history.back() Guys please help me. 回答1: If the navigation page is under different url than result page then it's not possible. You

Best practice for loading non model data in ExtJS

不问归期 提交于 2019-12-12 03:01:09
问题 Let's assume that I have 2 tables in my database, a user table and a folder table. They are matched by two models (beans) in my backend java code and similarly by to models in my extjs client side. Using viewmodel architecture, I want to create a form that shows the username and the amount of folders they have created using viewmodel bindings . Each folder in the database has a CREATE_USER_ID field that contains the id of the user that created the folder. How do I go about loading the

Local host for Sencha app development

大憨熊 提交于 2019-12-12 02:59:16
问题 1) I read from the Sencha site that the app can be developed locally using things like XAMPP installed on local Windows PC. Question -- Why need this local host when I can just use an external Web Host? 2) It was also mentioned that for Windows may not need XAMPP if Window's Internet Information Server (IIS) is already running. How do I know if my computer is running this and so don't need to install another local server? (I asking this because I had installed an XAMPP before on another

ExtJS Ext.tree.Panel slow rendered on repeated store load

六眼飞鱼酱① 提交于 2019-12-12 02:57:48
问题 I have a tree panel, data provided by remote service and I update my tree data by node. On first node data load all rendered relatively fast, but if I reload node data child nodes rendered too slowly. This becomes critical with large amount of child elements (1000+). I use ExtJS 4.2.0.663. As I understand its a bug in ExtJS - related sencha forum thread. Simple fiddle from linked forum thread to illustrate issue. I'm trying to find a fix for my ExtJS version, but to no avail (at the moment I

ExtJS json store not populating

↘锁芯ラ 提交于 2019-12-12 02:57:30
问题 I've recently taken a dive into ExtJS by inheriting a web app written in 3.4. I've managed to create a store attached to a grid with no problem and have been able to bring up a PanelForm with data loaded from a call to a php page. I have another json store defined which doesn't get populated when I call its load procedure and I'm wondering what I am missing. The definition of the store is below: var ImgStore = new Ext.data.JsonStore({ totalProperty: 'total' ,root: 'data' ,url : 'json

navigate to next view on image tap?

瘦欲@ 提交于 2019-12-12 02:54:33
问题 I am using dataview itemTpl to display my images (thumbnail view). I am able to display the images properly. How can I add itemtap on these images? So that when I tap on a particular image a new view is shown with the tapped image? I tried this with controller but no luck. Can you help me solving this. I am using Sencha Architect 2 for my example. I am trying this code .Please correct me First View Ext.define('MyApp.view.MyPanel', { extend: 'Ext.Panel', alias: 'widget.galleryview', config: {

sencha touch How to make navigation like Touch-Theming example by sencha touch

夙愿已清 提交于 2019-12-12 02:54:07
问题 I am creating an app in which I have to create the popup like sencha touch theming expample to select the navigation items. I tried to see its code on github for a hint but don't know what I am missing hare is my code for header bar and the list button. Ext.define('ov_app.view.HeaderBar', { xtype : 'HeaderBar', extend:'Ext.Toolbar', config: { // xtype : 'toolbar', ui: 'plain', docked: 'top', cls: 'menuBar', border:0, defaults:{ border: 0, }, items: [ { iconCls: 'list', iconMask: true, ui:

Grid view data format in Sencha touch

*爱你&永不变心* 提交于 2019-12-12 02:53:58
问题 I want to display some data in gridview format in sencha touch but i'm not able to find any control or any other way to achieve this. I want my gridview should look like : Thanks in advance. 回答1: OMG, you're right, there's no grid component delivered with touch. You'll have to use this user extension: https://github.com/mitchellsimoens/Ext.ux.touch.grid. Mitchell Simoens works at Sencha, so I think you don't have to worry about the quality of this component. 来源: https://stackoverflow.com

extjs - How to create listener for child component's custom event

只愿长相守 提交于 2019-12-12 02:49:07
问题 I am using a panel (say parentPanel) having another child panel (say childPanel). How can i fire a custom event from childPanel that will be caught by parentPanel? 回答1: Like so: Ext.define('Ext.ux.form.Panel', { extend: 'Ext.form.Panel', title: 'Simple Form', bodyPadding: 5, width: 350, layout: 'anchor', defaults: { anchor: '100%' }, defaultType: 'textfield', initComponent: function() { var me = this; me.items = [{ fieldLabel: 'First Name', name: 'first', allowBlank: false }]; me.callParent