extjs4

how to load ajax response in memory in extjs

匆匆过客 提交于 2019-12-12 03:27:12
问题 How to load data in memory in extjs .by using an ajax response.ajax response give an json data. when i try to load into paging grid it doesnt show anything .can any one you idea.its help full to me var itemsPerPage = 10; // set the number of items you want per page // i am creating a store to load data into memory var store = Ext.create('Ext.data.Store', { autoLoad: true, fields:['id','name', 'email'], pageSize: itemsPerPage, // items per page proxy: { type:'memory', enablePaging: true,

Why don't added records appear in grid?

非 Y 不嫁゛ 提交于 2019-12-12 03:18:06
问题 I created a custom field for multiple file uploading, the problem is in the first step i couldn't even add selected file to grid, can you tell me what is the problem of my code? I looked at firebug and there is no java-script error. Ext.define('VDOA.form.fields.Attachment', { extend: 'Ext.form.FieldContainer', mixins: {field: 'Ext.form.field.Field'}, requires: ['Ext.form.field.Base'], alias: 'widget.attachment', layout: 'fit', constructor: function() { var me = this; me.items = [ { itemId:

Extjs filtering is not Working properly

孤街浪徒 提交于 2019-12-12 03:14:33
问题 I am new to ExtJS. I have written a code for applying filtering in a Grid, but it is not working properly. Attaching the code snippet which I have written for applying filtering. Without filters, the grid is properly displayed at the panel. Ext.create('Ext.data.Store', { storeId: 'userDetailsStore', fields: ['username', 'firstname', 'lastname', 'role', 'activeuser'], data: {'items': [ {"username": 'USER1', "USER1-firstname": "firstname", "lastname": "USER1-lastname", "role": 'Admin',

pass two id s in extjs 4 tree multiSelect and pass one id in single click

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:08:49
问题 When a user selects one or many rows in my tree, I would like to set the row's IDs onto the url of my store proxy. Here is my current code: var treePanel = Ext.create('Ext.tree.Panel', { id: 'tree-panel', title: 'Taxonomy', region:'west', collapsible: true, split: true, multiSelect: true, height:'100%', width: '20%', minWidth: 100, rootVisible: false, autoScroll: true, store: store, viewConfig: { allowCopy: true, plugins: { ptype: 'treeviewdragdrop', appendOnly: true, ddGroup: 'selDD' } } });

ExtJS Ext.tree.Panel slow rendered on repeated store load

六眼飞鱼酱① 提交于 2019-12-12 02:57:48
问题 I have a tree panel, data provided by remote service and I update my tree data by node. On first node data load all rendered relatively fast, but if I reload node data child nodes rendered too slowly. This becomes critical with large amount of child elements (1000+). I use ExtJS 4.2.0.663. As I understand its a bug in ExtJS - related sencha forum thread. Simple fiddle from linked forum thread to illustrate issue. I'm trying to find a fix for my ExtJS version, but to no avail (at the moment I

Open or save the excel file attachment from the browser using ajax request in Ext.js

六眼飞鱼酱① 提交于 2019-12-12 02:48:59
问题 I am generating the excel file in server side and writing it to the outpuststream with the following response headers. response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition","attachment;filename="+fileName); In my client side : An ajax call to the servlet as shown : Ext.Ajax.request({ url: 'GenerateReport', method: 'GET', params: { 'start_date': sd.getValue(), 'end_date':ed.getValue() } }); Browser shows following Response Headers : My Issue : The Open

extjs scroll's grid stop working

我与影子孤独终老i 提交于 2019-12-12 02:46:50
问题 I´ve spent a couple of days dealing with an issue about grids' vertical scroll. Scrolls just stop working under some unknown conditions, I mean, it is not deterministic I think. My application has lots of grids and most of them work perfectly always but just a couple of them just don´t. I found this Extjs Grid scroll dons't work after application running while that describes the same problem that I have currently, however a migration to a newer version is not the solution for me because after

Remote paging grid in extjs

本小妞迷上赌 提交于 2019-12-12 02:39:56
问题 You are my last chance :(. Im trying do work a paging grid with mvc pattern. The grid show the fisrt 21 records, but not refresh when click "next" pagingtoolbar icon. All my codes are detailed below: The Store: Ext.define('CRUDManantiales.store.grid.AbmUsuarios', { extend: 'Ext.data.Store', model: 'CRUDManantiales.model.grid.AbmUsuarios', proxy: { type: 'ajax', url: 'resources/bundles/usuarios/generarJsonTodos.php', reader: { type: 'json', root: 'data', successProperty: 'success',

linked comboboxes with one store in Extjs 4.0

冷暖自知 提交于 2019-12-12 02:37:11
问题 I have 2 comboboxes. The first selects a category, the second selects the sub category. Both categories are stored in one store with fields: id, parentId, label. Filtering the store isn't working since both comboboxes are bound to the same store. How can I link the comboboxes? How can I filter the list of the second combobox? 回答1: Instead of referring to the same store use Ext.create() to create a new instance of the same store for the second combo box. Use select or change listeners on

How to use a file from Ext.example

风格不统一 提交于 2019-12-12 02:34:09
问题 I went through the docs to find for a Ext.example.msg but, i am unable to find it. According to this example, they have successfully used Ext.example.msg . How is this ? I had another question on SO which is related to this. UPDATE I am trying to use the following code in my application; Ext.example.msg('Button Click', 'You clicked ta button'); When i execute the code, i get an error saying TypeError: Ext.example is undefined . To overcome this error i did the following; 1.) added <script