extjs

Ext grid filtering default filter activation on loading

亡梦爱人 提交于 2020-01-13 20:29:30
问题 I have added default remote filter to grid for column 'hiddenFlag', however it is not active on first loading. When I click column header menu, filter seem to be active however records is now appropriate. I should deactivate and activate it again. how, I can configure it to be active for the first load also? Ext.define('Ext.migration.CommentGrid', { extend: 'Ext.grid.Panel', alias: 'widget.commentgrid', xtype: 'grid', initComponent: function(){ filePath = ""; this.filters = { ftype: 'filters'

How to use Sencha SDK for ExtJS?

做~自己de王妃 提交于 2020-01-12 07:51:06
问题 I am using ExtJS 4.1 and I am deploying my simple HelloExt program on GlassFish V3.1. I am trying to create a build from Sencha SDK. I have used the following two commands... C:\>sencha create jsb -a http://localhost:8080/HelloExt/index.jsp -p appname.jsb 3 -v C:\>sencha build -p appname.jsb3 -v -d . As per the documentation, it will create app-all.js file. But where does it create the file? How can I know IF build are created successfully or not? Where are the generated JS files? I made a

How to work with treecombo in Extjs 4.1

≯℡__Kan透↙ 提交于 2020-01-12 05:46:06
问题 I found tutor in http://www.sencha.com/forum/showthread.php?198856-Ext.ux.TreeCombo I try to make a treecombo in Extjs4.1 in http://jsfiddle.net/rq2ha/ here is my code Ext.onReady(function() { Ext.create('Ext.ux.TreeCombo', { margin:10, width:120, height: 10, treeHeight: 10, treeWidth: 240, renderTo: 'treecombo3', store: storeMenu, selectChildren: false, canSelectFolders: true ,itemTreeClick: function(view, record, item, index, e, eOpts, treeCombo) { var id = record.data.id; // I want to do

How to use Ext5 combobox with data bindings

纵然是瞬间 提交于 2020-01-12 05:45:06
问题 I want to use a combobox which receives the preselected value from a data binding and also the possible options from a data binding of the same store. The panel items configuration looks like this: { xtype: 'combobox', name: 'language_default', fieldLabel: 'Default Language', multiSelect: false, displayField: 'title', valueField: 'language_id', queryMode: 'local', bind: { value: '{database.language_default}', store: '{database.languages}' } } If I use this configuration, the store of the

Sencha Touch JSON Format

↘锁芯ラ 提交于 2020-01-11 13:29:09
问题 I'm trying to input a JSON file with the following format: [{"target": "stats.server14", "datapoints": [[0.0, 1340034660], [0.016666666666666666, 1340034720], [0.11666666666666667, 1340034780], [0.18333333333333332, 1340034840], [0.05, 1340034900], [0.0, 1340034960], [0.05, 1340035020],[null, 1340121000]]}] I cannot figure out how to parse this, as it includes metatags and nested data points. Here is what I have so far: Ext.regModel('DataModel', { fields: [ {name: 'target', type: 'string'},

Is smartclient suitable?

为君一笑 提交于 2020-01-11 12:44:17
问题 How does the waiting time for SmartClient scale across thousands of users editing grids? I have received warnings before that ExtJS would not be suitable. 回答1: SmartClient has a single grid component that does both horizontal and vertical incremental rendering, so it handles a very very large number of both rows (several million) and columns (several hundred) without degradation in performance. All of the grid features supported by SmartClient - inline editing, grouping, filtering, dynamic

How to add Copy to clipboard functionality in ExtJs?

*爱你&永不变心* 提交于 2020-01-11 10:28:14
问题 How to add Copy to clipboard functionality in ExtJs? It's working fine with IE browser but not Firefox, What else has to be altered to make it work in FF browser. Code: function selectCopy(txt,txtId) { Ext.getCmp(txtId).focus(); Ext.getCmp(txtId).selectText(); var s = document.getElementById(txtId).value; var div = document.createElement('div'); div.innerText = '"' + s + '"'; document.body.appendChild(div); if (window.clipboardData && clipboardData.setData){ window.clipboardData.setData('text

JSON data not showing when grid in dynamic tab?

柔情痞子 提交于 2020-01-11 07:50:12
问题 My grid isnt showing data when put to tab. This grid, store, model, JSON are working when renderd to body or div, or as a part of a viewport. Only not showing when put in tab, that is also created using JSON and Tree! This is a (sometimes)working example. I cant figure it out, maybe scope bug ... Please help! Ext.Loader.setConfig({ enabled: true }); Ext.require(['*']); Ext.require('app.kontakt'); Ext.require('app.ponude'); Ext.require('app.gridStore'); Ext.onReady(function() { Ext.create('Ext

Override Ext.data.Connection - Best Practice

半腔热情 提交于 2020-01-10 15:41:32
问题 I need to override Ext.data.Connection to show a Login Form. I do this at the moment in Ext.application.launch which works as expected. Is it possible to swap this piece of code somewhere different like in an extra file? 回答1: If you need this only to recognize when user is not authenticated you might want to consider doing something else. Like adding a handler to Ajax singleton: function addAjaxErrorHandler(object) { Ext.Ajax.on('requestexception', function(conn, response, options, e) { var

ExtJS4: How to show validation error message next to textbox, combobox etc

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-10 08:53:26
问题 I need to implement validation messages that appear right next to invalid field. Any help would be appreciated. 回答1: msgTarget: 'side' will Add an error icon to the right of the field, displaying the message in a popup on hover only. if you read the documentation carefully, one more option is there for msgTarget http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Text-cfg-msgTarget [element id] Add the error message directly to the innerHTML of the specified element. you have to add a "td