extjs

Pagination in Ext Tree

杀马特。学长 韩版系。学妹 提交于 2019-12-13 10:11:15
问题 I am using ext js javascript library. This is regarding pagination for ext tree. While loading tree, i am fetching complete tree data, whereas I wish to fetch only the top level or root level or maybe max upto 2 levels. I wish to fetch data at more depths, on demand. If user expands the node, then i wish to fetch the data for that node. My focus is on implementing pagination for the tree. Can i use Ext.direct for more efficient performance? My backend is delphi/pascal. What is the more

how to build tree in EXTJS?

こ雲淡風輕ζ 提交于 2019-12-13 10:09:48
问题 How to build a tree in EXTJS ? It has to include the images(with '+' & '-' symbols) with respective node.Can you get me the code for the same ???? 回答1: Start by defining an Ext.data.TreeStore to load your data into: var store = Ext.create('Ext.data.TreeStore', { proxy: { type: 'ajax', url: 'treeData.json' }, root: { text: 'Countries', expanded: true } }); Json: [{ "text": "United Kindom", "children": [{ "text": "Glasgow", "leaf": true }, { "text": "Edinburgh", "leaf": true }, { "text":

Ext.Container Display Card of Employee Birthday [closed]

时间秒杀一切 提交于 2019-12-13 09:57:22
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year . I'm trying to do the following example Employee Birthday locate on this url : http://examples.sencha.com/coworkee/#home , but I do not know to much ext js and their methods or events can someone can help me please. 回答1: Here's the: FIDDLE Theme on the site(you gave as an example) is Triton and it

search and retrieve data from xml using extjs

南笙酒味 提交于 2019-12-13 09:25:17
问题 This is XML file named "students.xml" <?xml version="1.0" encoding="utf-8" ?> <Students> <Student> <Name>Mahesh A</Name> <College>NITW</College> <Stream>ECE</Stream> <Status>Selected</Status> </Student> <Student> <Name>Vikram M</Name> <College>IIMA</College> <Stream>CS</Stream> <Status>Not Selected</Status> </Student> <Student> <Name>Naresh A</Name> <College>IITM</College> <Stream>EEE</Stream> <Status>Not Selected</Status> </Student> <Student> <Name>Prashanth P</Name> <College>NITW</College>

how to update the json file from extjs [closed]

痞子三分冷 提交于 2019-12-13 09:23:15
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . Can you please tell me how I can update the data from my extjs datagrid to JSON file?. My code works fine for loading static data from JSON file. Also, the data gets updated when I edit the data. But I am not

json not loading in iphone device while using sencha touch and phonegap

三世轮回 提交于 2019-12-13 08:28:19
问题 I'm trying to load a json into my view. Im using phonegap with sencha touch and when I load the app to my phone the json does not load at all.. It works fine in the browser and in the simulator. I would really appreciate some help from the experts Here is the main code that im trying: the store: App.stores.freebees = new Ext.data.Store({ model: 'Freebee', autoLoad: true, proxy: { type: 'ajax', url: 'fixtures/freebees', reader: { type: 'json' } } }); the list view: App.views.FreebeesList = Ext

Highchart + Extjs + chart Updates

家住魔仙堡 提交于 2019-12-13 08:22:47
问题 I setup this jsfiddle to show you an issue regarding Extjs and Highchart: http://jsfiddle.net/xea0w8n3/21/ var store = new Ext.data.ArrayStore({ fields: ['month', 'value'], data : [ ['jan', 1], ['feb', 2], ['mar', 3], ['apr', 4], ['mai', 5], ['jun', 6], ['jul', 16], ['aug', 2], ['sep', 7], ['oct', 4], ['nov', 3], ['dec', 11] ] }); var chart = Ext.create('Chart.ux.Highcharts', { id:'chart', series:[{ dataIndex: 'value' }], xField: 'month', store: store, chartConfig: { chart: { type: 'spline' }

Extjs 5: how to make two panel with different style

时光总嘲笑我的痴心妄想 提交于 2019-12-13 08:13:47
问题 In a sencha app, I want to create two or more "Panel" in the same page, but with different Style. Panel_1.js: Ext.define("MyApp.view.Panel_1",{ extend:'Ext.panel.Panel', title:'Panel 1 title", //some try componentCls:'panel_1', cls:'panel_1' ... }); Panel_2.js: Ext.define("MyApp.view.Panel_2",{ extend:'Ext.panel.Panel', title:'Panel 2 title", componentCls:'panel_2' }); I add these two panels in one page, eg. the "center" of mainview. Add for css file with css class panel_1 and panel_2. But

Combo box placed next to the textfield using extjs

半世苍凉 提交于 2019-12-13 07:43:21
问题 My code: var mpanel = new Ext.Panel({ baseCls: 'x-plain', //layout: 'anchor', width: 290, height: 500, items: [{ { width: 140, border: 1, readOnly: true, value: "combovalue", style: { borderColor: 'black', borderStyle: 'solid', float: 'left' }, xtype: 'textfield', }, { name: 'comp', id: 'compId', bodyStyle: 'margin-left:140px' triggerAction: 'all', mode: 'local', store: new Ext.data.SimpleStore({ fields: [ 'myId', 'displayText' ], data: [ [1, 'item1'], [2, 'item2'] ] }), displayField:

Sencha list paging plugin doesn´t work properly

本小妞迷上赌 提交于 2019-12-13 07:42:14
问题 I am trying to implement a feature with the "ListPaging" Sencha plugin, and its working correctly but with the next case I am having an exception. Server sents the total count of rows, for example 10, but if I have the pagesize property configurated with 11 rows, plugin doesn´t work. Here a little piece of code with the store implementation: store = Ext.create('Cicero.store.activity.Activities', { storeId: storeId, pageSize: 10, autoLoad: false, clearOnPageLoad: false }); This is the plugin