extjs4

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 scope the reset CSS so that is applied to Ext components using scopeResetCSS property?

老子叫甜甜 提交于 2020-01-11 09:27:07
问题 How can I set Ext CSS to be just applied to Ext components? This is what is mentioned in Ext documentation for scopeResetCSS : scopeResetCSS : Boolean True to scope the reset CSS to be just applied to Ext components. Note that this wraps root containers with an additional element. Also remember that when you turn on this option, you have to use ext-all-scoped { unless you use the bootstrap.js to load your javascript, in which case it will be handled for you. I have already set Ext

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

Extjs Load Mask while long processing

青春壹個敷衍的年華 提交于 2020-01-10 01:40:53
问题 I have problems setting load mask on panel properly. After click on a button the new tree store is being generated (localy) and it takes quite some time. The load mask shows for a millisecond only after (i think) the whole function evaluates. In my code console.log(0) and console.log(1) shows after the whole function processes, the button alone freezes for couple of seconds then unfreezes and after that console shows 0 and 1 . What is the proper way to handle this kind of situations. Here is

Dynamic Model with ExtJS 4

我的未来我决定 提交于 2020-01-09 04:19:51
问题 With ExtJS 3.x, I was able to use the "fields" property of a Store, but it seems with ExtJS 4 I have to absolutely use a Model. It's fine, but in my case, it's not a static Model, and I need to define the fields on the fly and sometimes to change them. I could re-create a Model, but I need to use a different name as it's apparently not possible to modify an exisiting Model, neither delete it. If I try to use Ext.regModel with the same name, ExtJS crashes. Thanks for your help! 回答1: 4.1 UPDATE

How to create custom ExtJS form field component?

核能气质少年 提交于 2020-01-09 04:19:32
问题 I want to create custom ExtJS form field components using other ExtJS components in it (e.g. TreePanel). How can I do it most easily? I've read docs of Ext.form.field.Base but I don't want to define field body by fieldSubTpl . I just want to write code which creates ExtJS components and maybe some other code which gets and sets values. Update: Summarized purposes are the followings: This new component should fit in the form GUI as a field. It should have label and the same alignment (label,

Dynamic Model with ExtJS 4

孤街浪徒 提交于 2020-01-09 04:19:27
问题 With ExtJS 3.x, I was able to use the "fields" property of a Store, but it seems with ExtJS 4 I have to absolutely use a Model. It's fine, but in my case, it's not a static Model, and I need to define the fields on the fly and sometimes to change them. I could re-create a Model, but I need to use a different name as it's apparently not possible to modify an exisiting Model, neither delete it. If I try to use Ext.regModel with the same name, ExtJS crashes. Thanks for your help! 回答1: 4.1 UPDATE