extjs

Extjs adding multiple items to a window does not work

北慕城南 提交于 2019-12-12 02:16:14
问题 I have a panel defined like this: var msgDetailsPanel = new Ext.ux.ManagedIFrame.Panel({ title: 'M', header: true, width:700, height:200, autoScroll: true }); And I have a Grid defined like this: var detailGrid = new Ext.grid.GridPanel({ id:'detailGrid', store: dataStore, collapsible: false, columnLines: false, enableHdMenu: false, header: false, cm: new Ext.grid.ColumnModel({ defaults: { sortable: true }, {id:'msgId',hidden: true, dataIndex: 'msgId'}, {sortable: true, dataIndex:

PhoneGap Camera API not working for iOS

泪湿孤枕 提交于 2019-12-12 02:14:38
问题 The PhoneGap camera API is not being called from my controller. The code is : navigator.camera.getPicture(this.onPhotoDataSuccess(), this.onFail(), { quality: 80,destinationType: Camera.DestinationType.DATA_URL, sourceType: Camera.PictureSourceType.PHOTOLIBRARY}); But no called being made to the navigator.camera.getPicture() function. Can anyone point out what am i missing? 回答1: Try this: navigator.camera.getPicture(this.onPhotoDataSuccess, this.onFail, { quality: 80,destinationType: Camera

Add tip text dynamically to a slider

对着背影说爱祢 提交于 2019-12-12 02:06:51
问题 In my project, I am trying to add the tip text (config) dynamically to a slider. How to do that? I need to add it dynamically because I am generating the array of variables in a "Controller", which holds the text for each value of the slider (for tip text). var slider = Ext.getCmp('slider') slider.setTipText(arrayOfVariables) //What should I do here instead? There is no such method like setTipText in docs. What should I use then? EDIT : { xtype:'slider', animate: false, //plugins: [Ext.create

ExtJS 4: Store data not populated with data inside store load callback function

徘徊边缘 提交于 2019-12-12 01:56:13
问题 Why would records.length be set to a number greater than 0, but the store.data.length is equal to 0? I'm basically trying to reference my store inside of the callback, so that my grid has data before I add it to my form. But the store data doesn't exist for some reason. If you have a better way of achieving the same end result, I'm willing to change it to your suggestion. Essentially, each grid is dynamically built based on different filters from the wrapping loop of this code. var p = item

Should I specify the proxy in the Model or the Store?

你。 提交于 2019-12-12 01:53:40
问题 I'm relatively new to cross-platform mobile development, and recently have been going through some basic tutorials on how to use Sencha Touch in my app. I have been confused by what seems to me as inconsistency in their methodology. So here is my question: I am using the MVC design pattern. When defining a proxy for storing data in an app, should I do this in the Model or in the Store? I have seen both done and am not sure which is better, or the cases when each should be used. The following

Extjs store.on('save', afterSave(resp));

我的梦境 提交于 2019-12-12 01:47:22
问题 I have a simple ExtJs (3.4) Grid with a Writer. When the user makes some changes the store is saved to the server as follows: store.on('save', afterSave(resp)); All is fine. However, I want to get a response as to wheather the record has been saved successfully, failed or an update conflict happed. How to best do this? 回答1: Are you using Ext.data.proxy.Ajax to load your stores? If so, you can use the reader property to evaluate and handle the server responses. Another option would be to make

UnCaught SyntaxError with extjs 4

一笑奈何 提交于 2019-12-12 01:47:15
问题 I have been getting UnCaught SyntaxError : Unexpected Token : . I'm really puzzled where this would come from. When i use the sample json it works http://www.sencha.com/forum/topics-browse-remote.php The issue maybe that i should use httpProxy. But i'm unsure how to incorporate this. Ext.Loader.setConfig({ enabled: true }); Ext.Loader.setPath('Ext.ux', '../ux/'); Ext.require([ 'Ext.grid.*', 'Ext.data.*', 'Ext.util.*', 'Ext.toolbar.Paging', 'Ext.ux.PreviewPlugin', 'Ext.ModelManager', 'Ext.tip

how to scrollToDeltaX gridpanel to the active editor(cellediting)?

放肆的年华 提交于 2019-12-12 01:46:33
问题 i have a gridpanel with cellediting plugin, and with a lot of grid header (at least make the grid shown it horizontal scrollbar)... here is the DEMO... there is a bug in my grid, try to edit one of the collumn, and then press tab key to navigate to header15 .. the grid didn't scroll to where i am editing,... is it a bug?? a have looking for this at their forum, but no luck.. so, how to fix it?? how to make my grid scroll to the active editor?? from docs, there is a method scrollByDeltaX , but

EXTJS JsOnStore bit but display blank value

孤人 提交于 2019-12-12 01:41:41
问题 This is an Picture Show PowerOff Return value with \u0001 , but unfortunately when i store in JsOnStore are failure and i m trying to alert('PowerOff') are blank, why? this is my JsOnStore Model Data Ext.define('GoogleMarkerModel', { extend: 'Ext.data.Model', fields: [ {name: 'ID', type: 'int'}, {name: 'Locating', type: 'int'}, {name: 'MainPower', type: 'int'}, {name: 'Acc', type: 'int'}, {name: 'PowerOff', type: 'int'}, // i have tried int,string,bit {name: 'Alarm', type: 'int'}, {name:

ExtJS 4.2 How to set grid filter height when header text is wrapped?

纵然是瞬间 提交于 2019-12-12 01:38:08
问题 I have a grid with many columns, each of them has a filter, and some of the columns has a long text in the header: I added a css rule to wrap text in the header: .x-column-header-inner .x-column-header-text { white-space: pre-wrap; } In result I got filters with different height: How to make the same height filters? 回答1: I implemented the search filter with your hint. You can find it here. I didn't have your issue with long column labels. They just cut off using an ellipsis like it is the