extjs

ExtJS - Dynamically Format GridPanel rows?

点点圈 提交于 2020-01-02 07:42:29
问题 I have records with a boolean value, and depending on the boolean value, I would like the GridPanel's rows to be rendered bold. I'm sure there is a nice GridView style way to do this but I can't seem to find it. Thanks. 回答1: Your answer is correct, but I want to point out that there's no need to provide an instantiated GridView instance in order to override getRowClass. Use the GridPanel's viewConfig instead: viewConfig: { getRowClass: function(rec, idx, rowPrms, ds) { return rec.data.isRead

ExtJS custom Paging parameters

牧云@^-^@ 提交于 2020-01-02 05:30:37
问题 I have an Extjs Grid with a Paging toolbar. I need to pass the server custom parameters for each request I make when paging the data. I have tried setting the params in the store load event , but it seems the pager does not remember the last options used for loading the store when the next button is clicked. Here is some code: var sourceGrid = new Ext.grid.EditorGridPanel({ region: 'center', title: localize.sourceView, store: sourceStore, trackMouseOver: true, disableSelection: false,

ExtJS 4.0.7 Load complete TreePanel

被刻印的时光 ゝ 提交于 2020-01-02 05:22:09
问题 I am in trouble with the ExtJS 4.0.7 TreePanel. I would like to load the complete tree from on JSON request. The request returns the following: { "data": { "children": [ { "text": "OS", "leaf": false, "children": [ { "text": "Hostname", "leaf": false, "children": [ { "text": "hostname.int.com", "leaf": true, "children": [] } ] } ] } ] } } With it doesn't work with the following store configuration (or any other i've tried) Ext.define('My.store.SysInfo', { extend: 'Ext.data.TreeStore', model:

Extjs scrolling a panel to a position

馋奶兔 提交于 2020-01-02 05:12:26
问题 Hi i have a panel and i want to scroll to a particular postiton in that panel how do i do it var tabs= new Ext.Panel({ id:id, title:text, autoScroll:true, iconCls:'windowIcon', closable:true, closeAction:'hide' }); 回答1: Set the scrollTop property of the panel's body to the number of pixels you want to scroll down: // Scroll the body down by 100 pixels. tabs.body.dom.scrollTop = 100; 回答2: Another option is to use the function scrollTo() here, http://docs.sencha.com/extjs/3.4.0/#!/api/Ext

Disable auto sorting on property grid in ExtJS

浪子不回头ぞ 提交于 2020-01-02 04:43:10
问题 I am dealing with property grid. I want to prevent auto sorting of column names for property grid. here is my code. Bold highlighted code is my source for property grid and its order is just like I want to see. But Ext is auto sorting column orders alphabeticly. How can I prevent that. Thanks for any suggestion. Ext.ns('Application.propertygrid'); Application.propertygrid.FileDetail = Ext.extend(Ext.grid.PropertyGrid, { title: 'File Detail', height: 200, border: false, stripeRows: true, flex:

Using ExtJS with ASP.NET, Webforms or MVC?

可紊 提交于 2020-01-02 04:42:10
问题 For a scenario using 0 ASP.NET controls at all but rather an 100% extJS interface, what would be the advantages of using ASP.NET MVC or ASP.NET WebForms? And the disadvantages? Is there a OBVIOUS way to do it properly? I would love to have feedback's on your experiences. Thank you! 回答1: WebForms + any purely client-side framework will give you nothing but endless headaches, if you can get it working at all. Some of the issues I've had in the past (off the top of my head, it's been a while):

Load another view after login with sencha touch 2.0

混江龙づ霸主 提交于 2020-01-01 19:54:37
问题 I'm having a dumb problem and I would like you to give me a hand.Thanks in advance. The situatios is as follows: I have 2 wiews (both created with sencha architect 2.0), one for login, and another for general purposes. And I would like to load the second view on successful response when trying to log in, this is, after any successful login. The main problem is that I've tried with Ex.create, Ext.Viewport.add, Ext.Viewport.setActiveItem, but I can't manage to make the second view to appear on

Load another view after login with sencha touch 2.0

痴心易碎 提交于 2020-01-01 19:54:04
问题 I'm having a dumb problem and I would like you to give me a hand.Thanks in advance. The situatios is as follows: I have 2 wiews (both created with sencha architect 2.0), one for login, and another for general purposes. And I would like to load the second view on successful response when trying to log in, this is, after any successful login. The main problem is that I've tried with Ex.create, Ext.Viewport.add, Ext.Viewport.setActiveItem, but I can't manage to make the second view to appear on

How to change background of hovered and pressed extjs-button dynamically

血红的双手。 提交于 2020-01-01 19:28:28
问题 Hy there, i need the ability to change the background-color for the different states (normal, hover, pressed) of a button dynamically. What i've came up with so far is the following: http://jsfiddle.net/suamikim/c3eHh/ Ext.onReady(function() { function updateBackground() { var theWin = win || this, // neccessary because of the call from the afterrender-event btn = theWin.down('#btnTest'), bckgr = theWin.down('#btnBckgr').getValue(), bckgrHover = theWin.down('#btnBckgrHover').getValue(),

How to export grid data to excel along group headers/ summary records with expand and collapse action in Excel?

…衆ロ難τιáo~ 提交于 2020-01-01 19:26:14
问题 I have done application using Extjs 4. I have requirement need to export grid data to excel. I have grid it contains many records, showing records by group headers/summary(collapse/Expand actions ). The same thing i need to export grid data to excel the same activity need collapse/expand in excel sheet . I have tried i am able to export grid records with group headers.summary to excel, cool it is working but collapse/expand is not happening in excel sheet. I need to implement this feature by