spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
  Home » EXTJS » Page 1
Defining a namespace with ExtJs5
You can use statics from new Ext: Ext.define('Foo', { // declare static members statics: { method: function(){ return "static method"; } } }); // Define class under Foo namespace Ext.define('Foo.OtherClass', { method: function(){ return "instance method"; } }); // Create instance of Foo.OtherClass var o = Ext.create('Foo.OtherClass'); // Use static member console.log(Fo

Categories : Extjs

Does Sencha Touch 2.4 have iOS 8.1/8 themes?
I believe that iOS 8 is way identical to iOS 7 in applications UI design. It includes several minor UI tweaks which don't belong to any application themselves, but global stuffs (multitasking screen or searching screen for example). So I think there isn't a necessity to create a dedicated theme for iOS 8.

Categories : Extjs

Adding an "None" item to a DirectStore
I use the 'load' event when I want to add custom records like this (http://docs-origin.sencha.com/extjs/5.0.1/#!/api/Ext.data.DirectStore-event-load), so your code would look like: Ext.define('MyApp.store.DataSourceTable', { extend: 'Ext.data.DirectStore', constructor: function (cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ autoLoad: true, storeId

Categories : Extjs

Extjs 4 delete one row or few rows via one method
try with these code in else block when you selected only one row else { var selected = this.getView().getSelectionModel().getSelected(); store.remove(selected ); // here sending object store.sync(); }

Categories : Extjs

Not able to perform left arrow and right arrow key operation in extjs grid textfiled column
There are events on the grid catching the keypress. Instead of trying to "insert" html code inside the value of the cell, why don't you just use the default "cellediting" plugin, as specified in the original example? Just move the editor block from the email column to the phone column: Ext.create('Ext.grid.Panel', { title: 'Simpsons', store: Ext.data.StoreManager.lookup('simpsonsStore'),

Categories : Extjs

CQ5, dynamically set 'defaultValue' in component's dialog using extjs?
The listener can only have values of events, defaultValue is not one. You can use the loadContent event,which is fired when the dialog loads. CQ.WCM.getPagePath() will give the current page path: <listeners jcr:primaryType="nt:unstructured" loadcontent="function(selection,record,path) { var currentPath = CQ.WCM.getPagePath(); if(currentPath.indexOf('en_gb/news')!=-1)

Categories : Extjs

How add in Ext.LoadMask Ext.Button?
This is not so easy, since LoadMask is not a container, which would have items property. You could try var loadMask = Ext.create('Ext.LoadMask',{ msg:'Text' }); loadMask.on('show',function(mask) { Ext.create('Ext.button.Button',{ text: 'Cancel', handler: function(){ loadMask.hide(); }, renderTo:loadMask.getEl() } }); loadMask.show();

Categories : Extjs

Extjs multi select treepicker
I can't see any such option in the documentation for TreePicker. However if you have the flexibility to use a different component, a CheckTree may better suit your task: http://dev.sencha.com/deploy/ext-4.0.1/examples/tree/check-tree.html The linked example only has leaves as checkboxes but adding checked: false or checked: true so any node will display a checkbox. The following is example JSO

Categories : Extjs

Extjs: cannot get view by xtype (Cannot convert undefined or null to object )
The selector has to be something, as specified for Ext.ComponentQuery. xtype defines which component is created when using autoCreate. Check the specs here.

Categories : Extjs

Iterate Array Object inside the itemtpl
If you are using a 'container' to render your custom tpl you can use 'data' field to send values to your tpl. For example: { xtype: 'container', tpl: '<tr class="mycompanydetail">' + '<tpl for="values">' + '<td>{v1}</td>' + '<td>{v2}</td>' + '<td>{v3}</td>' + '<td>{v4}</td>' + '<

Categories : Extjs

how to get Extjs Store last insert id?
var newId = -1; record.save({ success: function (rec, op) { newId = rec.getId(); alert(newId); } }); Look fiddle example

Categories : Extjs

Zooming-in and zooming-out color spread on the whole map
Please describe the problem more precisely. Each SLD Role should have <MinScaleDenominator>[value]</MinScaleDenominator> <MaxScaleDenominator>[value]</MaxScaleDenominator> or one of this. And by the way, the order of XML nodes is important in an SLD. For example, <Rule> <Name>Medium</Name> <MinScaleDenominator>100000000</Mi

Categories : Extjs


Recently Add
Gridpanel auto Height inside TabPanel
Defining a namespace with ExtJs5
Does Sencha Touch 2.4 have iOS 8.1/8 themes?
Adding an "None" item to a DirectStore
Extjs 4 delete one row or few rows via one method
Not able to perform left arrow and right arrow key operation in extjs grid textfiled column
CQ5, dynamically set 'defaultValue' in component's dialog using extjs?
How add in Ext.LoadMask Ext.Button?
Extjs multi select treepicker
Extjs: cannot get view by xtype (Cannot convert undefined or null to object )
Iterate Array Object inside the itemtpl
how to get Extjs Store last insert id?
Zooming-in and zooming-out color spread on the whole map
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.