extjs

File Download in javascript using AJAX call

别来无恙 提交于 2019-12-11 04:33:51
问题 This is my java script code for downloading the file from database on button click, when the button clicks this function calls. using ajax call i have moved to handler. function DownloadDocument() { var CurrentUserEmpId = CurrentSelectedUser; Ext.Ajax.request({ url: "UploadAttachment.ashx?mode=DownloadDocument&EmployeeId=" + CurrentUserEmpId, success: function (response) { var data = response.responseText; }, failure: function (form, action) { } }); } Here comes the handler page, I have got

Why are the Ext JS multiselect item selector files not included in the Ext JS 3.3 download and where are they?

夙愿已清 提交于 2019-12-11 04:32:12
问题 I am trying to set up a multiselect item selector based on this sencha example code. However, after building it into my environment, I get this error: What could be causing this error and how might I fix it? Addendum I have found that when I comment out this line: //xtype: 'itemselector', then it works. Why would the xtype "itemselector" not work? Strange also that I have found this list of valid ExtJS xtypes and itemselector is not on it. How could the Sencha example work if "itemselector"

How to dynamically add columns for Grid ExtJs

主宰稳场 提交于 2019-12-11 04:27:46
问题 I want dynamically load columns for grid from loaded store. I used code like in sencha fiddle https://fiddle.sencha.com/#fiddle/lc5&view/editor, it work, but in modern version it dose not work. Because modern version not have reconfigure method. How can I solve that problem. 回答1: Based on your example, the solution is as follows: var grid = Ext.create({ xtype: 'grid', fullscreen: true, minHeight: 150, renderTo: document.body, plugins: { gridsummaryrow: true }, store: { fields: ['student',

How send Ajax to remote server in extjs6?

强颜欢笑 提交于 2019-12-11 04:25:56
问题 I'm developing an application using Extjs-6.0.0 in client side. I run client side application in port 80 . My server side application running in port 8084 . I want to create an Ajax request to send a request to server and this request have attributes as follow: var json = { "@class": "ir.javan.geoad.entity.Melk", "title": "itsme", "description": "Hi all", "callPhone": "0912312312", "address": "ya ali", "accuracy": "MANTAQE", "user": { "email": "itsme.mm@gmail.com", "name": "asdf", "family":

What is a good way of filling a form in ExtJS by code, and fire the events for each component as if they were filled by the user?

瘦欲@ 提交于 2019-12-11 04:21:28
问题 In the project I'm working on, I have forms I sometimes have to fill by code. Let's say I have two comboboxes : combo1 and combo2. They are both required by default (allowBlank : false). On combo1's select event, I set combo2's allowBlank property to true and clear it. Everything's good so far, while user is filling the form. When I use combo1's setValue method, it doesn't trigger the select event, so combo2 is still required when I don't want it to be. What is a good way to solve this

change active item in a card layout. ExtJS

久未见 提交于 2019-12-11 04:18:49
问题 I have a panel using the card layout as follows: var cardpanel = new Ext.Panel( { id: 'cardPanel', //title: 'Card Layout', region: 'center', layout: 'card', activeItem: 0, autoDestroy: false, bodyStyle: 'border-top:0px', defaults: { border: false }, items: [mediaGrid, mappanel], tbar: [ { id: 'card-media', text: 'Media', icon: '/img/silk/images.png', width: 50, handler: function () { //switch to media } }, { id: 'card-map', text: 'Map', icon: '/img/silk/map.png', width: 50, handler: function

Extjs4 MultiLevelGrouping Grid and being able to print it

廉价感情. 提交于 2019-12-11 04:06:54
问题 I was trying to print an ExtJs grid and found rahul singla post: http://www.rahulsingla.com/blog/2010/10/extjs-printing-gridpanels-with-groupingview-and-groupsummary-plugin which led me to Ed Spencer Printer class, wich led me to Loaine's ExtJs4 version https://github.com/loiane/extjs4-ux-gridprinter which is absolutely great, so far so good, but the grid I'm trying to print has a multilevel groupingsummary feature for wich I used this UX http://www.sencha.com/forum/showthread.php?265814

Create event for arrow keys in extjs

余生长醉 提交于 2019-12-11 04:03:55
问题 How to get the char codes of the arrow keys in extjs? I tried the below code which is working good to get the char codes of all the keyboard buttons but not the arrow keys(also Backspace). Ext.getDoc().on('keypress', function(event, target) { console.log(event.getCharCode()) }); Before asking here, I have gone through the documentation which I can't understand. and also If I press backspace then the page is redirecting to previous page. I am planning to keep my own function in future on

Move items in Ext Js Grid

二次信任 提交于 2019-12-11 03:58:02
问题 In this sample Ext Js grid: http://dev.sencha.com/deploy/ext-4.0.2a/examples/dd/dnd_grid_to_grid.html You can drag and drop items from one grid to another, but you can't change the order of items in the second grid. You can drop items back and forth and order them the way you wish, but that's not an elegant way of doing it. What needs to change in the code so that one can move items up and down on the second grid (the one on right) ? Is it even possible? 回答1: All you need to do is to make

extjs, is it possible to compress load ext-all.js?

筅森魡賤 提交于 2019-12-11 03:57:33
问题 I have a website that's using the extjs librar. Exactly I just need grid, ajax and tree component. My project is used nationally, and to avoid problems due to low bandwith in the some regions, I must to make it as light as possible. When I use the developer tools in chrome, my site is too heavy. Especially when loading ext-all.js. It take 3,9 minutes to load(@512kbps), (even when I remove my own images and css from the website). Is there a way to compress it? Or to just load the tree, grid