extjs3

Adding Filter Icon in Extjs Grid Column once after Filter is applied

蓝咒 提交于 2020-03-03 09:06:48
问题 Is there anyway we can highlight column with filter is applied. The same way when we do sorting an icon is added on the individual column level to notify user. Thanks in advance. 回答1: This question is bit similar to Filter Header Update Any way to Achive this what my approach is first You need to prepare one css which having image what exactly you want. Your code for css look like or change as per your need : .filtered-column { background:url(http://dev.toadformysql.com/webhelp/...fiedFilter

How to place combobox in the tab's title?

寵の児 提交于 2020-01-14 14:35:12
问题 Is it possible to show combobox (better if it will be extjs combo) in the tab's title? I have created an example on jsfiddle but there are such issues: 1. It is not possible to show combo's options list (mouse click don't work) 2. Tab's height is incorrect (I guess this can be fixed by applying height to the combo). Sample code: new Ext.TabPanel({ renderTo: 'tab-with-combo', activeTab: 0, items:[ { title: 'First tab ' + '<select>' + '<option>Option 1</option>' + '<option>Option 2</option>' +

Create Multiple Comboboxes dynamically in ExtJS 3.0

主宰稳场 提交于 2020-01-07 05:40:13
问题 i am trying to create a comboBox on a form inside a for loop but i am unable to do so, can someone help? i found this code on stackoverflow however this doesn't seem to work on my version of EXTJS which is 3.3 stackoverflow code: for (var i=0; i < 8; i++) { Ext.create('Ext.form.ComboBox', { fieldLabel: 'Combobox '+i, store: ['Option1','Option2'], //better to use a dynamic store renderTo: Ext.getBody() }); }; My Code: var questionStore2 = null; example.SurveyFieldDefaultWindow = Ext.extend(Ext

how to track in gridview whether filter is applied or not in extjs?

感情迁移 提交于 2020-01-04 06:45:24
问题 My task is to put an image on the extjs grid column header whenever filter is applied in that column. When filter is cleared remove the image from the grid column header. How to achieve this in extjs 3? 回答1: In ExtJS 3.4 when filter is active on a column .ux-filtered-column class is added to the header cell. Easiest way is to add custom style for this class. 回答2: GridView has a reference to the grid it is used by. Hence, you could use this.grid.store.isFiltered() to check whether store is

How to use both Ext 3 and Ext 4 togeheter with GeoExt?

浪子不回头ぞ 提交于 2020-01-01 19:33:48
问题 We are trying to load both Ext 3 and Ext 4 with the use of ext-all-sandbox.js to be able to use GeoExt in Ext 4 . Looking in our DOM it seems we have succeeded with loading Ext 3, Ext 4, GeoExt and OpenLayers but are still getting errors like: "Ext.functionFactory() is not a function" and "Ext.supports is undefined" . Is there anyone out there that have tried a similar thing? This is the index.jsp where we are loading the js files. <!DOCTYPE HTML> <%@ page pageEncoding="UTF-8"%> <html> <head>

Display multiple fields in ExtJs 3.3 Combo box

断了今生、忘了曾经 提交于 2020-01-01 10:12:08
问题 I've opened up an ExtJs project that I've not had my head in for some time, and this is baffling me. I've an Ext.form.ComboBox that uses a remote JSON store to list users. I use an XTemplate to format the users as listed in the drop down: '<tpl for="."><div class="x-combo-list-item">', '{firstname} {lastname} ({email})', '</div></tpl>' When I expand the drop down, I see my users listed correctly: John Smith (jsmith@company.com) John Ford (jford@company.com) However when I click on a user, the

ExtJS. Hide all components within a container

≡放荡痞女 提交于 2019-12-30 07:11:23
问题 I have a window in which I am rendering a number of components like panels etc. Is there a way I can hide all the components contained in window without having to hide them individually? Something like, Ext.getComponent('myWindow').hideAllComponents(); I am using extjs 3.4. 回答1: If I understood you right, you do not want to hide your window, but the elements in your window. So can do this: // get window, get element, get all direct children with css selector '*' var children = Ext.get(

Better way to call superclass method in ExtJS

我的梦境 提交于 2019-12-29 16:33:07
问题 All the ExtJS documentation and examples I have read suggest calling superclass methods like this: MyApp.MyPanel = Ext.extend(Ext.Panel, { initComponent: function() { // do something MyPanel specific here... MyApp.MyPanel.superclass.initComponent.call(this); } }); I have been using this pattern for quite some time and the main problem is, that when you rename your class then you also have to change all the calls to superclass methods. That's quite inconvenient, often I will forget and then I

show separate drop down list for hour and minute in extjs 3.1.1

狂风中的少年 提交于 2019-12-25 10:01:15
问题 I am working on an extjs 3.1.1 application. Now I have a timefield that user select time from that and save this time but this timefield drop down list is very long and hard to find desired time. so I want to put separate drop down lists for hour and minute. can anyone please help me? 回答1: here is my code which i am using for date and time field.you can define format of time . i>for date: new Ext.form.DateField({ id : 'scheduleDate', fieldLabel : 'Date', format : 'd-M-Y', editable:false,

Porting from EXT js 3.4 to EXT js 5.0

早过忘川 提交于 2019-12-25 03:05:09
问题 I have a web application on Sencha currently using ExtJS 3.4 functionality using the Sencha Architect 3.2, want to port/Migrate some forms to ExtJS 5.0. What will be the changes required? they will be minor or Major ? Do I need to change whole structure to MVC ? Quick reply will be appreciated. 回答1: Moving from Ext JS 3.x to >= 4.x (in your case, 5.x) is a complete application rewrite. In 4.0, Ext JS completely changed how the class system works (using syntax like Ext.define() ) -- a breaking