I used instead of method destroy() from model instance, an Ajax request and it worked.
Ext.Ajax.request({
scope: me,
...
Type: Posts; User: guillermoabbona
I used instead of method destroy() from model instance, an Ajax request and it worked.
Ext.Ajax.request({
scope: me,
...
Modern Extjs is so buggy. It is time consuming.
Too many workarounds. Had to place listeners depending on the event it fires.
listeners: { activate: {
fn: function(grid) {...
I have to problems with a Ext.grid.Grid and Ext.data.virtual.Store.
Some times when loads at first or when scrolling fast it gives me this error:
[Uncaught TypeError: Cannot read property...
I used a workaround. After I instantiate the store I run the following code:
myStore.getFilters().begingUpdate();
After that, if you never wrap withe the endUpdate() method, all filters will...
As some suggested. In my case the grid is inside a window, so I set layout: 'fit' for the window and worked !!!
Ext.define('Example.model.ModelA', {
extend: 'Ext.data.Model',
requires: [
'Ext.data.proxy.Ajax'
],
idProperty: 'idField',
fields: [
{name: 'idField', type:...
Ext.define('Example.model.ModelA', {
extend: 'Ext.data.Model',
requires: [
'Ext.data.proxy.Ajax'
],
idProperty: 'idField',
fields: [
{name: 'idField', type: 'auto'},...
After creation of model instance, set the id property to null.
var modelInstance = Ext.create('MyModel');
modelInstance.set('idProperty', null);
Here is how I solved:
{
xtype: 'combobox',
name: 'fechaLiquidacionCb',
emptyText: 'Seleccione fecha...',
...
{
xtype: 'checkbox',
fieldLabel: 'URGENCIA',
labelSeparator: ' ',
...
I added to the HtmlEditor initialize event, the keypress event pointing to the iframe element. I used the Ext.EventManager, like the following:
//inside the initialize event...
I fixed adding to Ext.form.field.HtmlEditor private method fixKeys: the following code
if (Ext.isChrome) {
return function(e){
var me = this,
k...
Using the web browser (chrome) inspector, on tab key press, the editor sets an span tag, like the following:
<span style="white-space:pre"> </span> (using netbeans connector) ...
The version I'm using is Ext JS 4.2. The reports have to be written manually, and then printed. I already got to get it print, as long as the html editor has de correct width size the browser...
I notice that if y use TAB key to navigate inside the html editor, when it reaches the right limit, it jumps to the next line but not from the left margin, but from somewhere in the middle, and then...
This worked for me.
datePicker.setDisabledDates([null])