extjs4

ExtJS 4 - How to display template having width greater than the width of combo-box?

自闭症网瘾萝莉.ら 提交于 2020-01-23 16:17:40
问题 I have a combo-box in which the values are being displayed in a template. Now, I want the width of the template to be more than that of combo-box and hence I am using matchFieldWidth:false as mentioned at the link - ExtJS ComboBox dropdown width wider than input box width? But when I do so, then in the list of values there is no scrollbar displayled due to which the user is able to see only the first two values. The complete list gets displayed as soon as matchFieldWidth:false is removed, but

ExtJS 4 - How to display template having width greater than the width of combo-box?

落爺英雄遲暮 提交于 2020-01-23 16:16:47
问题 I have a combo-box in which the values are being displayed in a template. Now, I want the width of the template to be more than that of combo-box and hence I am using matchFieldWidth:false as mentioned at the link - ExtJS ComboBox dropdown width wider than input box width? But when I do so, then in the list of values there is no scrollbar displayled due to which the user is able to see only the first two values. The complete list gets displayed as soon as matchFieldWidth:false is removed, but

How to configure ExtJS 4 Store (proxy and reader) to read metadata

╄→гoц情女王★ 提交于 2020-01-22 05:55:06
问题 My question is how to get metadata besides totalRecords, in my case it is version, code, searchquery (please look at json). { "result": { "version":"1", "code":"200", "searchquery": "false", "totalRecords": "2", "account":[ { "lastname": "Ivanoff", "firstname": "Ivan", "accountId":"1" }, { "lastname": "Smirnoff", "firstname": "Ivan", "accountId":"2" } ] } } Here is my model: Ext.define("test.Account", { extend: "Ext.data.Model", fields: [ {name: 'accountId', type: 'string'}, {name: 'lastname'

How to compare null value from the JsonObject in java

雨燕双飞 提交于 2020-01-20 20:05:48
问题 stackoverflow member i need some help from you. I am having a JsonObject given below { "Id": null, "Name": "New Task", "StartDate": "2010-03-05T00:00:00", "EndDate": "2010-03-06T00:00:00", "Duration": 1, "DurationUnit": "d", "PercentDone": 60, "ManuallyScheduled": false, "Priority": 1, "parentId": null, "index": 2, "depth": 1, "checked": null } i am getting parentId as null. I want to replace the parentId value from null to 0. I am trying to do it with below mentioned code if(jsonObject.get(

How to compare null value from the JsonObject in java

坚强是说给别人听的谎言 提交于 2020-01-20 20:05:16
问题 stackoverflow member i need some help from you. I am having a JsonObject given below { "Id": null, "Name": "New Task", "StartDate": "2010-03-05T00:00:00", "EndDate": "2010-03-06T00:00:00", "Duration": 1, "DurationUnit": "d", "PercentDone": 60, "ManuallyScheduled": false, "Priority": 1, "parentId": null, "index": 2, "depth": 1, "checked": null } i am getting parentId as null. I want to replace the parentId value from null to 0. I am trying to do it with below mentioned code if(jsonObject.get(

Scope in ExtJS 4 inside a function handler

这一生的挚爱 提交于 2020-01-17 03:25:34
问题 I've searched a little about the scope problem and found some stuff but I'm not sure they work for my case. I'm really confused atm so I thought I might as well ask directly to the forums. I have a tree panel. Inside that tree panel I have a dockedItem of xtype: 'textfield'. That textfield takes a value and uses it as a parameter in an ajax request via Ext.Ajax.Request inside a handler for the specialkey event. The server returns a JSON object on its response that gets decoded and contains

Extjs4 - Ajax Request : Url generation

牧云@^-^@ 提交于 2020-01-17 01:22:05
问题 I need to set an ajax request with a generated url. Ext.define('Cc.store.Absences', { extend: 'Ext.data.Store', model: 'Cc.model.Absence', autoLoad: false, proxy: { type: 'ajax', url: 'person/user_id/absences', //I need a param to define user id reader: { type: 'json' } } }); I think I have to use Ext.data.Operation but I don't know how to do that. 回答1: If you are looking to dynamically generate an URL and assign it to the store, you can do it as follows: store.getProxy().url = '/person/' +

Behaviour of autoDestroy: false in Extjs4

巧了我就是萌 提交于 2020-01-15 14:24:45
问题 How does autoDestroy:false actually works in Ext-Js 4. I am intending to close the tab and then recreate it on click of button, See the code here: <html> <head> <link rel="stylesheet" type="text/css" href="../resources/css/ext-all.css" /> <script type="text/javascript" src="../bootstrap.js"></script> <script type="text/javascript">Ext.require('Ext.tab.*'); Ext.onReady(function(){ var tabs = Ext.create('Ext.tab.Panel', { width: 400, height: 400, renderTo: document.body, autoDestroy: false,

How To design chart in Ext.js?

独自空忆成欢 提交于 2020-01-15 05:27:06
问题 I have started work on charts using Ext.js. I am new for this Ext.js. i have attached both image chart1 and chart2. I need to design chart like chart1 but it is not coming. I have did chart but it is showing like chart2. How can achieve like chart1. I have attached both images for references. Can any one give me hints/solution how to solve this issue. based on date and job value graph line has to come and another graph line based on downtime and date has to come .In first chart1 blue/red dot

ExtJS 4.1.0 grid performance issue

依然范特西╮ 提交于 2020-01-14 03:09:19
问题 I am using an ExtJS grid with 50 columns and more than 1000 records. I am facing performance issues while scrolling vertically/horizontally and for cell editing. Is it possible to get smooth performance without pagination for this size of data, or is pagination the only solution? 回答1: You should use infinite scolling. This allows you to display your table with 1000 records, while they are not created in the dom, so they are not slowing down your browser. Look at this example in the docs. You