extjs

Find out if a selected item in ExtJs ina Ext.panel.tree has a child

限于喜欢 提交于 2019-12-11 17:34:42
问题 does anyone know a way to find out, in ExtJS if a selected item in an Ext.tree.Panel has a child? I know you can find a selected item by doing tree_dir.getSelectionModel().getSelection() but I don't see any way to check if it has any children. 回答1: The instance returned by tree_dir.getSelectionModel().getSelection() should have hasChildNodes() method specifically for that purpose. 来源: https://stackoverflow.com/questions/13608736/find-out-if-a-selected-item-in-extjs-ina-ext-panel-tree-has-a

How to acces Object property

梦想的初衷 提交于 2019-12-11 17:28:44
问题 I have external API, proxy is rest, reader defined, type: 'json', rootProperty: 'data; How to get property "FullName" I have tried with record.get('FullName'). Created function called getDetails, passed as argument string, returned return record.get('FullName), always undefined. Details: function(v, record) { return record.get('FullName') } Here is onDelete function : OnDelete: function (record,data) { Ext.Msg.confirm('Delete Changes', 'Do you want to delete' + " " + record.Details, function

How to filter the Store?

纵然是瞬间 提交于 2019-12-11 17:27:19
问题 Who knows how to filter the Store right? I tried to do it in listener of leafItemTap of Nested List, but my leaf items not tapping now. Massage in console: "Uncaught TypeError: Cannot call method 'filter' of undefined " Here is Nested list, where Store must be filtered: Ext.define('Application.view.SplitView', { extend: 'Ext.Container', xtype: 'splitview', config: { layout: 'card', store: null }, initialize: function() { this.nestedList = Ext.create('Ext.NestedList', { title : 'Рецепты',

Sencha Architect 4 - ExtJS 6.5 -> Dreamfactory 2.9 Authentication Session Token

徘徊边缘 提交于 2019-12-11 17:23:23
问题 I got a little bit stuck and I would like to ask your advice, I am trying to setup a login window // authentication using DreamFactory in Sencha Architect however I am pretty much a beginner. My current Code is: var username = Ext.getCmp('usr').getValue(), password = Ext.getCmp('pwd').getValue(); Ext.Ajax.defaultHeaders = { 'X-DreamFactory-Api-Key' : 'xyz', 'Content-Type' : 'application/json' }; Ext.Ajax.request({ url: 'http://dreamfactoryaddy:8080/api/v2/user/session', withCredentials: true,

What are the Bare Minimum Reqs to implement Ext.QuickTips() fully?

孤人 提交于 2019-12-11 17:13:21
问题 I'm redoing a question I made earlier, I want to ask it in a different way focusing more on the concept rather then my specific problem. I'm looking at Saki's Form Examples, specifically, Displaying Form Submit Errors. I'm running Ext-JS 3.3.0, and I'm looking for pretty much the same functionality in my design (mine would be inline however, and the tips would appear as the user defocuses from the textbox). My Question is: what are the minimum REQ files that I need to include in my HTML to

How to change name of JSON key?

爱⌒轻易说出口 提交于 2019-12-11 16:53:01
问题 children: [ { name:'Basic Ext Layouts', expanded: false, children:[ { name:'Absolute', id:'absolute', leaf:true, },{ ... }] }] Is it possible to change children to mydata ? 回答1: JSON format is merely a String in javascript's point of view. So you could manipulate the JSON string with associated method. JSON. // The original obj = { children: [ { name:'Basic Ext Layouts', expanded: false, children:[ { name:'Absolute', id:'absolute', leaf:true, }] }] } // Transfer the object to a JSON string

Dynamically change the search options in Ext JS 5.1.3 MultiSelector

痴心易碎 提交于 2019-12-11 16:48:55
问题 Im attempting to alter the search options in a Ext.view.MultiSelector component based on a drop down selection, however whatever I try to do to update the search options is not reflected in the UI. Below is a basic example of what I'm trying to do. I'm not sure if there is a function I'm not calling, or if the search options are just never re-loaded from the store once the element is drawn to the canvas? this.multiSelectorObj = Ext.create('Ext.view.MultiSelector', { valueField: 'id',

ExtJs Bug? Selector not working properly

女生的网名这么多〃 提交于 2019-12-11 16:46:52
问题 It appears that this selector is not working in ExtJS: Ext.select('.serviceGridItem:not(:first)') It is selecting all items, whereas it should only select the last three (there are four total). See the jsfiddle linked below and look at your console for the result. This is the result: Ext.select('.serviceGridItem') constructor {elements: Array[4], el: constructor, self: function, superclass: Object, config: emptyFn…} Ext.select('.serviceGridItem:first') constructor {elements: Array[1], el:

How to parse this format of xml data?

て烟熏妆下的殇ゞ 提交于 2019-12-11 16:37:30
问题 i tried to parse data of this format of xml: <?xml version="1.0" encoding="UTF-8"?> <root> <list info="INFY, Jan 20 call, 40 cents or Lower" profit="60%" loss="gdh"/> <list info="HPCL, Feb 20 PUT, 20 cents or Lower" profit="80%" loss="fgh"/> <list info="AAPL, May 290 call, 90 cents or Lower" profit="ss" loss="20%"/> <list info="DIA, April 105 call, 32 cents or Lower" profit="ghh" loss="20%"/> <list info="GOOG, Aug 350 call, 47 cents or Lower" profit="100%" loss="sdgd"/> </root> using this

connect json with extjs

南笙酒味 提交于 2019-12-11 16:34:14
问题 In my sample login form, I am trying to connect to json and get the result ie., true, if username and password matches, else false. json ( exists in my project folder ) { "form": { "login": [ { "username": "venkat", "password": "123" }, { "username": "admin", "password": "345" } ] } I created a function like below. But I don't know what to do next. The sencha documentation has methods like ajax, proxy for MVC architecture, which I am not using. function checkJson(username, password){ //What