extjs

GXT 3 mobile support

心已入冬 提交于 2019-12-18 07:24:21
问题 Support GXT 3 responsitive design out of the box or is there another way to get a good mobile application with GXT running. I know about Sencha Touch but I don't want to develop two standalone apps.. Regards, Markus 回答1: 2015-01-22 update without mentioning a date, but looks promising: sencha.com: Taking a Look at Sencha GXT and GWT it seems in summer 2014 (around now :-)) we should get this natively with GXT 4.0 from Sencha: http://www.sencha.com/blog/gxt-roadmap-update/ full tablet support

Sencha seems to not like Rails' json

和自甴很熟 提交于 2019-12-18 07:12:59
问题 I've got a Rails controller which is rendering some models to json. @events = Event.all respond_to do |format| format.html # index.html.erb format.xml { render :xml => @events } format.json { render :json => { :results => @events } } end The output looks like this: { "results": [ { "name":"test", "created_at":"2011-03-23T13:32:57Z", "latitude":60.0, "location":null, "updated_at":"2011-04-14T16:38:54Z", "id":1, "longitude":30.0, "takes_place_at":"2011-03-23T13:32:00Z" }, { "name":"x", "created

Filefield with extjs 4.2 without fakepath

血红的双手。 提交于 2019-12-18 06:56:20
问题 I want with extjs 4.2 I use this component in attachment : { xtype: 'filefield', id: 'file6', fieldLabel: 'test ', labelWidth: 100, msgTarget: 'side', allowBlank : false, anchor: '100%', buttonText: 'upload' }, I want to have a attachment component which display name of file without this text : c /fakepath 回答1: There isn't a built-in way to accomplish this however, you can do a find/replace for fakepath and remove. I impelmented this on the change event. Here is an example: listeners: {

Sencha ExtJS. Cannot send POST request on cross-domain with Ext.Ajax.request

余生长醉 提交于 2019-12-18 05:08:05
问题 I have backend with POST functionality (so JSONP is not working). Backend sends Access-Control-Allow-Origin: * correctly (jQuery.ajax works successfully). But I cannot send request using Ext.Ajax.request Ext.Ajax.request({ url: 'http://myurl', method: 'POST', cors: true, success: function () { alert('success'); }, failure: function () { alert('failure'); } }); In debug console I see OPTIONS method Where is my mistake? Ext.getVersion() version: "5.0.1.1255" 回答1: I think you will have to set

Remove typing cursor from combobox

孤街浪徒 提交于 2019-12-18 04:53:06
问题 I am using an ExtJS combobox. There is a typing cursor when focusing on the combobox. I tried to implement editable: false when creating the combobox, but it helped only for chrome. Also tried clearListeners() function to see if this works on that cursor - didn't help, it still appears in FireFox and IE. The other idea is to set disabled on the input field in combobox. When I did it manually, it helped. But when I wrote the next Ext.get('bu-encodingcount-combobox').select('input').set(

remember after refresh selected row in extjs grid

老子叫甜甜 提交于 2019-12-18 04:34:29
问题 I have a problem. I use extjs grid . This grid will be refreshed every seconds . I refresh with this function: ND.refresh = function() { ND.commList.load(); } var refreshSeconds = refreshRate * 1000; var t = setInterval('ND.refresh()', refreshSeconds); But when someone selected a row to highlight it it reset this selection. How can I remember the selected row and highlight it again after refresh? This is my grid: var grid = Ext.create('Ext.grid.Panel', { autoscroll: true, region: 'center',

How do I force the display of a decimal in an ExtJS NumberField to a certain precision?

非 Y 不嫁゛ 提交于 2019-12-17 22:54:16
问题 I have a form with a NumberField that gets values of type float from JSON. If the values happen to be whole numbers, then no decimal places are shown. I would like to show 2 decimal places at all times. Is there a config option for this? Here's my declaration: items: [ { fieldLabel: 'Net Sales', name: 'netSales', allowBlank:false, decimalPrecision:2 }, 回答1: either extend : var myNumberField = Ext.extend(Ext.form.NumberField, { setValue : function(v){ v = typeof v == 'number' ? v : String(v)

extjs change grid cell background based on value

喜夏-厌秋 提交于 2019-12-17 19:22:28
问题 I applied a renderer to my grid-column, but the background color is not changing: renderer: function(value, meta) { if (parseInt(value) > 0) { meta.tdCls = 'category-matching'; return value; } else { meta.tdCls = 'category-not-matching'; return value; } } css: .x-grid-cell .category-matching { background-color:green; } .x-grid-cell .category-not-matching { background-color:red; } I also tried .grid-cell-inner and background-color:red; !important but no effect. Any idea? 回答1: Try this...

EXTJS 4 render HTML of a selected value in a combobox

穿精又带淫゛_ 提交于 2019-12-17 18:43:56
问题 Hello I have the next problem, I want to render the html of my display value in a combobox, at the moment I load a store with the html ready, it renders the html when I show all of them, but when I select one, it show the html. What can I do to render the html when the item is already selected? Here are some images to help to explain the inconvenient: This is when Im going to select one http://i.stack.imgur.com/TcfRA.jpg This is when I select one http://i.stack.imgur.com/Kzi9r.jpg The Html

How to find unique selectors for elements on pages with ExtJS for use with Selenium?

假装没事ソ 提交于 2019-12-17 16:39:42
问题 I am using Selenium with Firefox Webdriver to work with elements on a page that has unique CSS IDs (on every page load) but the IDs change every time so I am unable to use them to locate an element. This is because the page is a web application built with ExtJS. I am trying to use Firebug to get the element information. I need to find a unique xPath or selector so I can select each element individually with Selenium. When I use Firebug to copy the xPath I get a value like this: //*[@id="ext