extjs

Firefox rendering issue in Ext JS

耗尽温柔 提交于 2020-02-25 08:18:05
问题 var win = Ext.create('Ext.window.Window', { title: "Window", modal:true, width: 570, height: 440, layout: 'card', items:[{ xtype: "panel", border: true, bodyBorder: true, title: 'Panel', bodyStyle: { "background": "linear-gradient(to left, #fff , #6799ff)" }, id: 'PanelID', items:[{ xtype: 'box', id: 'BoxID', title:'Box', width: 558, height: 325, autoEl: { tag: 'iframe' }, listeners: { 'boxready': function() { var popWindowdoc = Ext.getCmp('BoxID').el.dom.contentDocument; $(popWindowdoc.body)

TCPDF returning weird characters

不羁的心 提交于 2020-02-24 12:28:28
问题 maybe you can help me. When I try to show a pdf I created I got some weird symbols like this u\>�'���O���r>c!%�@�R�`YPd+��vv����1��E�'^k-�WD�*+��W^��wy��V Z��dUdJ�B���C�ڳtK����j:c���5����50���D3lgH#�}%���D+������ix����,��-�'\�� �_st^&0�Y���������v�*Ӗ,W����u!H��sNN��0cӝ��`xEk��d��^� �8K9�BL����9�̋"6/�E�|�̛�-�7�P��B�#�T�F���4`���� What I do is transform a html file with this code $html = $this->load->view('ReporteIngresoView', $data, TRUE); $pdf = new Pdf('P', 'mm', 'A4', TRUE, 'UTF-8', FALSE);

TCPDF returning weird characters

浪尽此生 提交于 2020-02-24 12:28:14
问题 maybe you can help me. When I try to show a pdf I created I got some weird symbols like this u\>�'���O���r>c!%�@�R�`YPd+��vv����1��E�'^k-�WD�*+��W^��wy��V Z��dUdJ�B���C�ڳtK����j:c���5����50���D3lgH#�}%���D+������ix����,��-�'\�� �_st^&0�Y���������v�*Ӗ,W����u!H��sNN��0cӝ��`xEk��d��^� �8K9�BL����9�̋"6/�E�|�̛�-�7�P��B�#�T�F���4`���� What I do is transform a html file with this code $html = $this->load->view('ReporteIngresoView', $data, TRUE); $pdf = new Pdf('P', 'mm', 'A4', TRUE, 'UTF-8', FALSE);

How to get application from view?

杀马特。学长 韩版系。学妹 提交于 2020-02-23 09:57:09
问题 How can I get my application from a view? For example consider I have an application Boo and there's a view that named Boo.view.Foo.List and I want to get Boo in the view List . Edit: See this code, and look at the line 20. Ext.define('Boo.view.Foo.List', { extend: 'Ext.panel.Panel', model: 'Boo.model.FooModel', alias: 'widget.foolist', store: 'FooListStore', initComponent: function () { this.columns = [ { text: "Hello world", dataIndex: 'Time', flex: 1 }, { xtype: 'actioncolumn', width: 50,

Extjs - Toolbar button menu dropdown with submenus. It's possible?

前提是你 提交于 2020-02-23 09:11:29
问题 I've already done a toolbar with buttons that have a dropdown menu but I need more submenu levels. It's possible to do that? Example: toolbarbutton -> menu 1 lv 1 menu 2 lv 1 menu 3 lv 1-> submenu 1 lv 2 submenu 2 lv 2 menu 4 lv 1 and so on... 回答1: Have a look at this example! You can achieve using the Ext.menu.Menu class. Here is an Example: { text: 'Main Menu', menu: { xtype: 'menu', items: [{ text: 'Menu One', iconCls: 'edit' }, { text: 'Menu Two', menu: { xtype: 'menu', items: [{ text:

Extjs - Toolbar button menu dropdown with submenus. It's possible?

拈花ヽ惹草 提交于 2020-02-23 09:10:46
问题 I've already done a toolbar with buttons that have a dropdown menu but I need more submenu levels. It's possible to do that? Example: toolbarbutton -> menu 1 lv 1 menu 2 lv 1 menu 3 lv 1-> submenu 1 lv 2 submenu 2 lv 2 menu 4 lv 1 and so on... 回答1: Have a look at this example! You can achieve using the Ext.menu.Menu class. Here is an Example: { text: 'Main Menu', menu: { xtype: 'menu', items: [{ text: 'Menu One', iconCls: 'edit' }, { text: 'Menu Two', menu: { xtype: 'menu', items: [{ text:

Extjs - Toolbar button menu dropdown with submenus. It's possible?

放肆的年华 提交于 2020-02-23 09:10:19
问题 I've already done a toolbar with buttons that have a dropdown menu but I need more submenu levels. It's possible to do that? Example: toolbarbutton -> menu 1 lv 1 menu 2 lv 1 menu 3 lv 1-> submenu 1 lv 2 submenu 2 lv 2 menu 4 lv 1 and so on... 回答1: Have a look at this example! You can achieve using the Ext.menu.Menu class. Here is an Example: { text: 'Main Menu', menu: { xtype: 'menu', items: [{ text: 'Menu One', iconCls: 'edit' }, { text: 'Menu Two', menu: { xtype: 'menu', items: [{ text:

Dynamic scrolling in combobox ext 4.0

好久不见. 提交于 2020-02-20 10:30:20
问题 I am using extjs 4.0 and having a combobox with queryMode 'remote'. I fill it with data from server. The problem is that the number of records from server is too large, so I thought it would be better to load them by parts. I know there is a standart paginator tool for combobox, but it is not convinient because needs total number of records. The question, is there any way to add dynamic scrolling for combobox? When scrolling to the bottom of the list I want to send request for the next part

Dynamic scrolling in combobox ext 4.0

孤街醉人 提交于 2020-02-20 10:29:29
问题 I am using extjs 4.0 and having a combobox with queryMode 'remote'. I fill it with data from server. The problem is that the number of records from server is too large, so I thought it would be better to load them by parts. I know there is a standart paginator tool for combobox, but it is not convinient because needs total number of records. The question, is there any way to add dynamic scrolling for combobox? When scrolling to the bottom of the list I want to send request for the next part

Javascript (ExtJs) returns a 404 error for a URL, but no problems when I type it into a browser

匆匆过客 提交于 2020-02-07 07:48:26
问题 I am using ExtJs on a front end and an ASP.NET on the back-end. I am pretty new to both. I am trying to send a request to the back end using ExtJs, however, I get a 404 error. When I copy the URL from the console to the address bar in any browser, it works fine. I am using a localhost URL so I am not sure if that is the error. Here is my ExtJs code. (I realize there are some other issues in the code, I just want the front end to connect to the back-end for now). ExtJs code: Ext.define('AM