extjs

ExtJS 4.2 Month Days (columns) for Holiday Planner

我的未来我决定 提交于 2019-12-13 04:51:44
问题 I have a requirement for a 4.2.1 ExtJS app that Im building, to have a grid like the image below: The objective of the grid is to manage Holidays for employees. I was thinking in setting the columns of the grid dinamically , but will need to fill the background cell depending of the type of "leave type", and also disable some cells depending on the days that are not supposed to work (like weekends, etc). Any advice on how can I approach to the solution? Appreciate in advance. 回答1: There is a

how to fix window in it's absolute position and don't scroll on browser scroll?

坚强是说给别人听的谎言 提交于 2019-12-13 04:49:23
问题 In ExtJS when I scroll browser window Ext.window.window stays on same position on Viewport. I would like to fix this window on it's absolute position. I saw documentation says: fixed : Boolean Configure as true to have this Component fixed at its X, Y coordinates in the browser viewport, immune to scrolling the document. Defaults to: false But does not work for me. What I am missing? How to fix window in it's absolute position and don't scroll on browser scroll? 回答1: This part works. But

Creating a 2x2 Button Grid with Centered Buttons?

我怕爱的太早我们不能终老 提交于 2019-12-13 04:45:16
问题 I have a 2x2 button grid. Now I'd like to shrink the buttons to 200x200, place each in a container as a space place holder, then center each button in its respective container. In my image, I've only shrunk the two top buttons so you can see the spacing on the page. How can I go from the first image to the second image, which was Photoshop'ed? The goal: (actually, all 4 centered buttons is the goal) File: app.js Ext.application({ launch: function() { var view = Ext.create('Ext.Container', {

Getting Cookies in Sencha touch 2.0 using Ajax request

天涯浪子 提交于 2019-12-13 04:43:30
问题 I'm developing a web mobile project using Sencha touch 2.0 I made an ajax request as follows: Ext.Ajax.request({ url: myUrl, params: { format: 'xml', callback: 'success' }, method :'POST', xmlData :MyXMLData proxy:{ type: 'ajax', reader:{ type: 'xml', rootProperty:'ns2:user' } }, On the server-side I have the following headers set: header("Access-Control-Allow-Origin: *"); The server returns an XML response and cookies By using Chrome's debugging tools I can see that various Set-Cookie

Get CheckboxGroup (or RadioGroup) values [EXTJS 3.4]

*爱你&永不变心* 提交于 2019-12-13 04:37:10
问题 I have a checkboxgroup and a radiogroup. For both of them, I want to catch several values. For the checkboxGroup var DescCheck = new Ext.form.CheckboxGroup({ fieldLabel: 'Description of service : <span style="color: rgb(255, 0, 0); padding-left: 2px;">*</span>', width : 540, labelSeparator : '', items: [ {boxLabel: 'Direct', name: 'Direct', inputValue: 'Direct'}, {boxLabel: 'Fixed-day', name: 'day', inputValue: 'Fixed'}, {boxLabel: 'Weekly', name: 'Weekly', inputValue: 'Weekly'} ] }); I tried

ExtJs 3.4 : Move selected items from one grid to another on a button click

依然范特西╮ 提交于 2019-12-13 04:35:54
问题 I have a check box model grid which is loaded from JsonStore. var drop_pick_grid = new Ext.grid.GridPanel({ store : dropPickGridStore, cm : new Ext.grid.ColumnModel([ selectModel, { sortable : true, header : "Drop/Pick Loc", dataIndex : 'locationName', width : 170, renderer : function(value, metaData, record, rowIndex, colIndex, store) { var refColor = record.data.tourTypeColor; //console.log(record); metaData.attr = 'style="background-color:' + refColor + ';"'; return record.get(

extjs - How to submit a form when the response is not json?

末鹿安然 提交于 2019-12-13 04:35:24
问题 I understand that when I submit a form, according to the documentation ExtJs by default parses the response as JSON. In my case, the server returns HTML, that I want to display in a Panel. When I submit the from using getForm().submit() , ExtJs will throw an error about invalid JSON: Ext.JSON.decode(): You're trying to decode an invalid JSON String How can I tell ExtJs not to attempt to parse the response ? I could the access the text with the response object. 回答1: I don't know if you are

extjs 4 how to wrap children components of container in custom html?

北慕城南 提交于 2019-12-13 04:33:10
问题 I need to create Twitter Bootstrap basic NavBar component in my ExtJS 4.2 application. All I want to make my component generate the following html: <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-inner"> <ul class="nav"> <li class="active"><a href="#"><i class="icon1"></i> Item #1</a></li> <li><a href="#"><i class="icon2"></i> Item #3</a></li> <li><a href="#"><i class="icon3"></i> Item #3</a></li> </ul> </div> </div> I've created two views (NavBar and NavBarItem

ExtJS paging toolbar malformed

故事扮演 提交于 2019-12-13 04:33:03
问题 Using ExtJS 4.2.1 I added a paging toolbar to a grid panel. Everything works fine except that the toolbar is rendered malformed. The page input field is far to small and has some weird frames around it. With a little luck I can type something into the field but I can't read anything. I see this with both default theme, neptune and gray theme and it is the same for Chrome and Firefox: I used the default themes. Any idea about this? In case this is a theme or CSS related problem (is it?) here

How to POST JSON request in cross domain in sencha touch

廉价感情. 提交于 2019-12-13 04:32:35
问题 I have got following URL https://development.avalara.net/1.0/tax/get and would like to POST following JSON request body { "DocDate": "2011-05-11", "CustomerCode": "CUST1", "Addresses": [ { "AddressCode": "1", "Line1": "435 Ericksen Avenue Northeast", "Line2": "#250", "PostalCode": "98110" } ] } which then will give JSON response { "DocCode": "78b28084-8d9a-477c-9f26-afab1c0c3877", "DocDate": "2011-05-11", "Timestamp": "2011-05-11 04:26:41", "TotalAmount": 10, "TotalDiscount": 0,