extjs

add textfield and button for grid cell edit with extjs

痴心易碎 提交于 2019-12-11 20:17:18
问题 I'd like to use extjs grid cell edit function, besides textfield, datepicker, I also need a textfield with a button in the right to trigger a picklist modal window. It looks like to datepicker which has a calendar icon in a textfield in the right. I tried fieldcontainer to combine a textfield with a button, however, it doesn't work. Thanks a lot for help! Ext.define('CellPicklist', { extend: 'Ext.form.FieldContainer', xtype: 'cell-picklist', layout: 'hbox', width: 200, items: [{ xtype:

ExtJS4 gridPanel data not showing

有些话、适合烂在心里 提交于 2019-12-11 20:14:05
问题 I've made this very simple jsfiddle to show you this abnormal behaviour http://jsfiddle.net/mrgamer/GgUkE/2/ In my application i'm using the same methods i've written here, .loadRawData() on the store, cause .loadData() doesn't fire the 'load' event. I'm filling the store manually cause i've to filter some JSON data, compile it, and then insert to this store. Anyway the problem doesn't seem to be in the store, since the Grid gets populated, you can click on 2 rows, but the data isn't

where and how to write updatedata event in the correct way

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 19:51:25
问题 I want to add a listener which listens to updatedata event in my custom component. I have several ways to do it, but don't know which one is correct: inside config config:{ updatedata:"dataUpdated" }, dataUpdated: function() { ......... } 2. config:{ listeners:{ updatedata: function(thisComponent, newData, eOpts){ .............. } } } Also, do I need to call something like: me.updatedata() within the listener function? Please correct me if something wrong in my code. Thank you. 回答1: You would

EXTJS 4.2 escape colon (:) in XML Tag for XML Reader

霸气de小男生 提交于 2019-12-11 19:49:23
问题 I am trying to load atom pub CMIS 1.0 binding into EXTJS and the colons in the tags are stopping the XML reader from doing its work. For instance the xml looks like: <atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://docs.oasis- open.org/ns/cmis/core/200908/" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:app="http://www.w3.org/2007/app"> <atom:author> <atom:name>system</atom:name> </atom:author> <atom:id>http://chemistry.apache.org/MTAz</atom:id

Making a panel in border layout to float over center panel

懵懂的女人 提交于 2019-12-11 19:43:07
问题 I am using border layout in ExtJs 4 wherein the east panel is a collapsible panel. When I expand the panel it forces the center panel to adjust (shrink). Similarly When the east panel is collapsed the center panel retracts. The desired behavior is that when I expand the east panel it should float over the center panel and not force it to adjust itself. How can I achieve this? 回答1: Set the floatable: true config option on the east panel. See also the Border layout example. 来源: https:/

How to check few form fields are empty or not?

北城以北 提交于 2019-12-11 19:39:26
问题 I am using ExtJS 3.4.0 I have a form in "var new" variable that comes to Ext.Window(). I need to do code that checks between textfield and textarea is one of them empty or not. I mean if textfield is empty and textarea is not then form data can be submitted vice versa. This code must be placed to the code that starts like below: newform .getForm() .submit( 回答1: I hope you can find in my example Ext.onReady(function(){ var newForm=Ext.create('Ext.form.Panel',{ title:"Form", items:[ { xtype:

EXTJS combobox change even code executed on page load

旧城冷巷雨未停 提交于 2019-12-11 19:37:05
问题 I have created class for combobox, which object can be created whenever combobox need in project. now for every change event of every combo there can be different things to do, so I have not written any code in my combo class for combo change event. I need something like I can assign code to combo change event when i create it or after creating. So i write below code . Ext.getCmp('combo1').on('change', Ext.getCmp('grid').getfilteredStore()); But issue with this code is : Ext.getCmp('grid')

Sencha Touch limit number of items in list

孤者浪人 提交于 2019-12-11 19:34:16
问题 I'm building an app that should run on mobile/tablet/pc. And the main feature contains an enormous list of items that I'm getting from json file hosted on another server. Currently I'm working on a PC and the list takes about a minute to populate (over 800 objects, the number grows everyday), I'm guessing that's because it takes time to generate the markup for 800 divs... Note: I'm working locally, when this is online it would be a nightmare, overkill.. My thoughts were to get all the data

Not navigating to the leaf node when I Tap on the back button from another view in sencha touch

倖福魔咒の 提交于 2019-12-11 19:17:40
问题 I have a nested list in my app, on the leaf node i have a map button, I linked my MapView to this button, its going well to the MapView, Now when I tap on the back button of the MapView I am getting a empty view instead of the leaf node with the following warnings WARN][Ext.Component#constructor] Registering a component with a id ( mainlist ) which has already been used. Please ensure the existing component has been destroyed [WARN][Ext.Component#constructor] Registering a component with a id

ExtJS hide all child components [duplicate]

ε祈祈猫儿з 提交于 2019-12-11 19:01:44
问题 This question already has answers here : ExtJS. Hide all components within a container (3 answers) Closed 5 years ago . Consider: Ext.Array.each(myContainer.query('> *'), function(cmp) { cmp.hide(); }); Is there a better way? 回答1: Your approach uses a query which takes more resources. A more efficient way may be just: Ext.each(myContainer.items.items, function(cmp) { cmp.hide(); }); Since you already have a reference to myContainer, there's no point of querying for its children as you already