extjs

How to have reference to an accordin in ExtJS?

[亡魂溺海] 提交于 2019-12-24 23:55:00
问题 I'm working with an accordion that has 10 grids inside of it. So basically I would like to access each grid in the accordian but not really sure how to accomplish that in ExtJS. Example: If I want to target a grid I can do this: Ext.ComponentQuery.query('grid'); But if I use the above code it will target all of the grids from the UI and I don't want that. I ONLY want to target the grids from my accordian. layout: { type: 'accordion', animate: false, fill: false, hideCollapseTool: false,

Blueprint CSS Extjs and JQuery in the same page, best way to make them coexist without conflict

谁说胖子不能爱 提交于 2019-12-24 23:22:34
问题 I have a web page that needs references to jQuery and Blueprint and extjs, I ve seen some docs for dealing with (1) jquery and other libraries and (2) extjs and other libraries The docs I ve found also seem to contradict each other a bit, and reference older versions of the libs, so was wondering if anyone did this and what is the least painful path ( so this task doesnt take me a looong time) Note: this site needs to support ie6 ( this is js stuff so I m sure this is a relevant piece of info

How to get an ExtJs application to look like the Feed Example?

血红的双手。 提交于 2019-12-24 22:45:05
问题 In my ExtJS Applications I have 3 components, an Ext.tree.Panel , and Ext.grid.Panel and an Ext.Img . I want them to have the same layout as the Feed Viewer example here: http://dev.sencha.com/deploy/ext-4.0.0/examples/feed-viewer/feed-viewer.html I have been trying to look at the code but I am still having trouble getting my components to look like that (One component on the left, and two on the right one on top of the other). Can anyone explain how I can do this using 'Border' layout?

Extjs keeping current select items in combo and adding new items

╄→尐↘猪︶ㄣ 提交于 2019-12-24 22:17:23
问题 I have a Role combo box which already have 3 item (loaded User Model). Now I need to add the 4th item to the selection but it doesn't keep the current items, and when I add the 4th one, it will be the only item selected in combo. Is there anyway to implement this behavior ? My grid record is selected like this doSelectUser: function(grid, record) { var me = this; var selectedRoleVals = record.get('roles'); me.getUserForm().loadRecord(record); And then I click the combo box in User Form:

How to re-render the panel to different div when panel already render to some other div

你说的曾经没有我的故事 提交于 2019-12-24 21:04:47
问题 I have created a Ext.Panel object, it rendered properly to specified div element on my page. I want to replace the panel object underlying element(previously rendered div element) to another div which will be identified dynamically. Here I don't want to create the Panel object once again by specifying identified div element, I need to make use of existing panel object and need to show the panel in the place where the identified div exists. Can any one helps me regarding this. Thanks Venkat

ExtJS 4 month and year picker

强颜欢笑 提交于 2019-12-24 20:33:15
问题 I wanted to add a Month and Year picker on my app. So, I found this Fiddle https://fiddle.sencha.com/#fiddle/h5i on one of stackoverflow posts. It uses Extjs 5.0 and works fine. However, if we change it to 4.2.1 the last row on the Month and Year both disappear i.e June, Dec on Months and 2015, 2020 on years disappear. The same can be seen when you choose Extjs 5.0. What should I be fixing/changing to get those rows back? I tried increasing height/width of .x-monthpicer-body etc ... but didn

Extjs 4.1.3 button that sets active filters

橙三吉。 提交于 2019-12-24 20:10:04
问题 I want to add a button to the toolbar that automatically sets a filter as active and then subsequently filters the data. I have tried using the setActive() function for Ext 4.1.3 but that function is not being recognized. fiddle Code var openButton = Ext.create('Ext.Button', { text: 'Open Topics', handler: function () { grid[uniqueId].filters.setActive('Open/Current'); } }); ... var columns = [{ text: 'Status', width: 100, dataIndex: 'TopicStateValue', filter: { type: 'list', options: ['Open

How to store login credentials in localstorage

独自空忆成欢 提交于 2019-12-24 19:33:59
问题 If got a sencha touch application, with a login form. For returning users, I would like to store the login credentials in the local storage. User.js App.models.User = Ext.regModel('User', { fields: [ { name: 'username', type: 'string' }, { name: 'password', type: 'string' } ], proxy: { type: 'localstorage', id: 'p2s-users' } }); Users.js App.stores.users = new Ext.data.Store({ model: 'User', autoLoad: true }); Now I try to sync the form values with local storage, how can I do that, what's the

Uncaught TypeError: Cannot read property 'internalId' of undefined

心已入冬 提交于 2019-12-24 19:16:10
问题 If I change model primaryKey remove run code is not error,but other event don't execute.such as itemclick, itemcontentmenu. My sencha extjs version is 6.0.who can help me. view code: { xtype : 'dataview', autoScroll:true, bind: '{houseStoreLocal}', tpl: [ '<div id="separate">', '<div id="rentalContainer">', '<tpl for=".">', ' <div class="xsd-font-size16 top xsd-margin-t16">', ' <a class="apartment" data-target="#houseDetail">{dy}</a>',//{lc} ' </div>', ' <ul class="roomList xsd-clearfix">', '

EXTJS 6.5 Binding store data in viewmodel to field in view

こ雲淡風輕ζ 提交于 2019-12-24 18:47:51
问题 Unfortunately I don't know how to make an MVVM Modern app work in Fiddle so I'll have to post my code here, but here's a simple app that demonstrates the problem I'm having. App.js Ext.application({ extend: 'simple.Application', name: 'simple', requires: [ // This will automatically load all classes in the simple namespace // so that application classes do not need to require each other. 'simple.*' ], // The name of the initial view to create. mainView: 'simple.view.main.Main' }); app