extjs

ExtJS 3.3 Format.Util.Ext.util.Format.dateRenderer returning NaN

拟墨画扇 提交于 2019-12-23 08:29:21
问题 The Store var timesheet = new Ext.data.JsonStore( { root: 'timesheetEntries', url: 'php/scripts/timecardEntry.script.php', storeId: 'timesheet', autoLoad: true, fields: [ { name: 'id', type: 'integer' }, { name: 'user_id', type: 'integer' }, { name: 'ticket_number', type: 'integer' }, { name: 'description', type: 'string' }, { name: 'start_time', type: 'string' }, { name: 'stop_time', type: 'string' }, { name: 'client_id', type: 'integer' }, { name: 'is_billable', type: 'integer' } ] } ); A

How to create hyper link in ExtJS 4?

倾然丶 夕夏残阳落幕 提交于 2019-12-23 07:25:37
问题 I am working in ExtJS 4.I have been getting stuck at a point where I have to create a hyperlink in ExtJS 4.I have been searching a lot for creating hyperlink in ExtJS 4 but I did not get any solution for it.Actually I have to create a hyperlink and after clicking on that link I am going to display another page in ExtJS 4. Actually also i did not get the event in ExtJS 4. How can I use hyperlink in ExtJS 4. I am using this way... { xtype: 'panel', html:'<a href="second.js">Second page</a>', }

How to create hyper link in ExtJS 4?

风格不统一 提交于 2019-12-23 07:25:24
问题 I am working in ExtJS 4.I have been getting stuck at a point where I have to create a hyperlink in ExtJS 4.I have been searching a lot for creating hyperlink in ExtJS 4 but I did not get any solution for it.Actually I have to create a hyperlink and after clicking on that link I am going to display another page in ExtJS 4. Actually also i did not get the event in ExtJS 4. How can I use hyperlink in ExtJS 4. I am using this way... { xtype: 'panel', html:'<a href="second.js">Second page</a>', }

Container vs Panel in Extjs

蹲街弑〆低调 提交于 2019-12-23 07:00:53
问题 I have a question about Extjs I have read the official document on Sencha doc but I have some confusion about 2 kinds of Component .That's the Container and the Panel. What is the difference between Container and Panel? Which should be used in which case? Any answer are very appreciated. 回答1: Excerpt from the documentation of Container: Base class for any Ext.Component that may contain other Components. Containers handle the basic behavior of containing items, namely adding, inserting and

Using Sencha ExtJS to customise an existing website or do a mashup

浪子不回头ぞ 提交于 2019-12-23 06:57:36
问题 I'm using ExtJS 4.2.1 to add customizations to a web site over which I have no design control. You could consider this to be like adding ExtJS components to another page as a mashup. The problem is that when ExtJS starts up it adds CSS classes, such as x-body , to the <body> element of the DOM and this affects everything else on the page. I need to be able to stop it doing this while still allowing it to take effect on the ExtJS containers. I know that I can use an IFrame to contain my ExtJS

Getting a refernce to an auto-instantiated Sencha Touch 2 view

梦想与她 提交于 2019-12-23 06:00:18
问题 I'd like to get a reference to my view from my Sencha Touch 2 controller, which looks like this (CoffeeScript): Ext.define 'MyApp.view.Books', extend: 'Ext.Panel' id: 'books' config: html: 'Hello, Books!' Ext.define 'MyApp.controller.Books', extend: 'Ext.app.Controller' views: [ 'Books' ] init: -> @control '#books': render: -> console.log 'This is never called. Why?' show: -> console.log 'This is called twice.' # @getBooksView() is not a view instance, it is a class. Why? console.log 'View

Using responsive plugin in ExtJS 5

佐手、 提交于 2019-12-23 06:00:16
问题 I have used extjs responsive plugin as below to make a responsive data grid. plugins: 'responsive', responsiveConfig: { 'width < 600': { width: 150 }, 'width >= 600': { width: 320 } } But what I actully need is dinamically change the width according to the viewport size. Something like this. responsiveConfig: { width: getViewPortsize()/2 } How can I actually do this? 回答1: The best way to get the viewport size like that would be to call a getCmp of the viewport, or if you have it saved to a

Getting a refernce to an auto-instantiated Sencha Touch 2 view

坚强是说给别人听的谎言 提交于 2019-12-23 05:58:03
问题 I'd like to get a reference to my view from my Sencha Touch 2 controller, which looks like this (CoffeeScript): Ext.define 'MyApp.view.Books', extend: 'Ext.Panel' id: 'books' config: html: 'Hello, Books!' Ext.define 'MyApp.controller.Books', extend: 'Ext.app.Controller' views: [ 'Books' ] init: -> @control '#books': render: -> console.log 'This is never called. Why?' show: -> console.log 'This is called twice.' # @getBooksView() is not a view instance, it is a class. Why? console.log 'View

selectionchanged event is not working

让人想犯罪 __ 提交于 2019-12-23 05:36:05
问题 I have two felds in my dialog, one is text field(leftpadding) and another is dropdown with four options(option 1, option 2, option 3, option 4).My requirement is to display/enable the textfiled when the user selects option 3 and option 4 only. I added listeners(selectionchanged) node to the dropdown field. loadcontent event is firing but selectionchanged is not working fine. Please find below for the code snippet selectionchanged: function(field,value){ var layoutoption = ""; layoutoption =

ExtJs - Get element by itemId in extJs 3.4

Deadly 提交于 2019-12-23 05:29:32
问题 How do i get the components with same 'itemId'? using ExtJS 3.4. I have 4 combos in different hbox layout with same itemId. I need get the values of all these combox. Is there any api's available for this? form1 row1 combo1 form1 row2 combo2 form1 row3 combo3 form1 row4 combo4 Please help. 回答1: I solved it by using 'hiddeName' for components inside the form. Through Ext.query() we can get all the hbox forms and from that form.getValues() will provide the values of components inside the form.