extjs

Custom function call after Extjs 4 grid sort

岁酱吖の 提交于 2019-12-13 18:22:01
问题 I have an Extjs 4 grid with sort capability. i want to call a custum function after each time user presses sort button. In my custom function i want to navigate to the first page of my grid (my grid uses pagination and it takes advantage of server-side sort) i think i must use store.loadPage(1) in my custom function (correct me if I'm wrong) where should i put my custom function? This is my Ext.OnReady() function: Ext.onReady(function() { Ext.tip.QuickTipManager.init(); var url = { local:

charts won't draw with extjs 3.4

柔情痞子 提交于 2019-12-13 18:07:10
问题 A simple problem, really simple code, i just copy/paste the code example, on my local project of course, but no charts drawing ... i really don't understand what's happening, i change in doubt url of the swf on my local folder, same problem, please help ! <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Charts v1.0</title> <link rel="stylesheet" type="text/css" href="css/ext-all.css" rel="stylesheet" /> <script type="text/javascript" src="js/ext-base

JsHint with Ext Js in VisualStudio

∥☆過路亽.° 提交于 2019-12-13 17:35:14
问题 I am working with Ext Js and Visual Studio. With _references.js I can get the intellisense working. I can add a definition for "Ext" in here for JsHint: But it still thows 500 errors about ext-all-debug.js I am wondering if using JsHint here adds any value to my project. Visual Studio seems to take care of true JavaScript syntax errors. Some examples of the warnings: JsHint (W116): Expected '===' and instead saw '=='. or: JsHint (W083): Don't make functions within a loop. Should I disable

Synchronously loading 'MyApp.store.TreeStructures'; consider adding Ext.require('MyApp.store.TreeStructures') above Ext.onReady

大兔子大兔子 提交于 2019-12-13 17:26:27
问题 Below, you will see that I'm getting a JavaScript exception with an MVC view I created in an Sencha ExtJS MVC application. I have another MVC view that extends 'Ext.tree.Panel' that reads a simple JSON object instead of pulling the data via an Ext.Direct proxy and .NET server-side stack, but the only thing that's different is the proxy implementation and of course our MVC controller logic. In the static (JSON) implementation, our proxy is defined in the model. In the dynamic (Ext.Direct)

SCRIPT438: Object doesn't support property or method 'keys' for IE

橙三吉。 提交于 2019-12-13 17:11:57
问题 I found strange for the following code: var allextRules = Ext.util.CSS.getRules(); Object.keys(allextRules).forEach(function(key) { var keyname = key; if(keyname.indexOf("js") != -1){ Ext.util.CSS.removeStyleSheet(keyname); console.log(keyname + " Removed"); } }); When the above work is tested in other browser (say - Google Chrome), there is no error. However, when tested in IE 9, there is error as follows: SCRIPT438: Object doesn't support property or method 'keys' According to this article

Sencha Touch 2: How to override back button on Navigation View

痞子三分冷 提交于 2019-12-13 16:58:44
问题 I was wondering how to ovverride the back button on a navigation view. I tried using onBackButtonTap but it doesnt seem to work http://www.senchafiddle.com/#8zaXf var view = Ext.Viewport.add({ xtype: 'navigationview', onBackButtonTap: function () { alert('Back Button Pressed'); }, //we only give it one item by default, which will be the only item in the 'stack' when it loads items: [ { //items can have titles title: 'Navigation View', padding: 10, //inside this first item we are going to add

Ext JS 4: Convert JSON object to another JSON object using JavaScript

纵饮孤独 提交于 2019-12-13 16:33:58
问题 What is the easiest way to convert JSON A to JSON B using JavaScript? JSON A: { "d": [ {"__type":"Web.Controls.Shared.GeneralService+DropdownKeyValuePair","key":"0","value":"one"}, {"__type":"Web.Controls.Shared.GeneralService+DropdownKeyValuePair","key":"1","value":"two"}, {"__type":"Web.Controls.Shared.GeneralService+DropdownKeyValuePair","key":"2","value":"three"} ] } JSON B: { data: [ {"key":"1", "value":"one"}, {"key":"2", "value":"two"}, {"key":"3", "value":"three"} ] } ================

extjs gridfilter icon not showing in IE but shows in Firefox

不羁岁月 提交于 2019-12-13 16:26:24
问题 In Gridfilters, if you are using a StringFilter field, then there is a property in StringFilter.js called : icon: 'ux-gridfilter-text-icon', Basically this loads a 'binocular' icon in beside the filter text box. This works fine with mozila, but with IE, the icon is not showing up. Is this a known problem by any chance? I am using the source at : http://ccinct.com/lab/filter-grid/ My ext js ver is 3.2.1 The girdfilters version seems to be v0.2.7 as per GridFilters.js EDIT: This works in Chrome

Treepanel with rootVisible = true not shown

☆樱花仙子☆ 提交于 2019-12-13 16:03:58
问题 My tree is shown correctly when using rootVisible: false . However setting it to true leads to no tree display and no error. My aim is to show a root node that I can define as / or Root . How to achieve this? My solution: Putting rootVisible to true and adding this to my tree store: root: { id : '/', expanded : false, name : '/', type : 'folder', path : '/', root : true } 回答1: The name for the Rootnode is Root by default. But you can specify any other name. var store = Ext.create('Ext.data

unable to update (PUT) and delete (delete) data in django-piston

社会主义新天地 提交于 2019-12-13 15:50:29
问题 i just followed this tutorial and the example is great. http://weblog.mattdorn.com/content/restful-web-apps-with-django-piston-and-ext-js/ but when i create on my own, the add method is ok but the delete and update is not. here is the console of my runserver: [16/Nov/2011 00:11:17] "DELETE /api/phonebooks/10 HTTP/1.1" 301 0 [16/Nov/2011 00:11:17] "GET /api/phonebooks/10/ HTTP/1.1" 200 255 [16/Nov/2011 00:11:23] "PUT /api/phonebooks/12 HTTP/1.1" 301 0 [16/Nov/2011 00:11:23] "GET /api