lundi 2 juin 2014
dimanche 1 juin 2014
RowNumberer is default hideable
Thank you for reporting this bug. We will make it our priority to review this report.
RowNumberer is default hideable
RowNumberer is default hideable
Hello,
the RowNumberer is default hideable. This should not be the default case. Otherwise you have a hideable column with no name. You can easily see it in your own examples:
Binding both cell editor and form field to record doesn't work. Bug or feature?
I have modified the original fiddle from this post to bind record fields to both cellediting plugin and form fields. Updating values in form fields works as expected (the record is updated) but values are not propagated from cell editors to form fields. The record is updated as selecting another grid row and then back to the edited on finally updates form fields.Is it a bug or a design feature?
Here is the fiddle that demonstrates that: http://ift.tt/1ojCwk5
hasMany association store filter. Bug?
Thank you for reporting this bug. We will make it our priority to review this report.
hasMany association store filter. Bug?
hasMany association store filter. Bug?
Hello!
I have model with hasMany association (ExtJS 4.2.1.883):
Code:
Ext.define('App.model.Asset', {
extend: 'Ext.data.Model',
uses: [ ... ],
fields: [ ... ],
hasMany: [
{
name: 'devices',
model: 'App.model.Device',
foreignKey: 'assetId',
primaryKey: 'id'
}
]
});
After creating asset model automatically added filter to devices store:Code:
exactMatch: true
filter: undefined
filterFn: undefined
initialConfig: { ... }
property: "assetId"
root: "data"
value: undefined
Next, I need to add some filters to the store and filter it (for unsaved asset model), but I get an error:Code:
Uncaught TypeError: Cannot read property 'call' of undefined
into static method createFilterFn in Ext.util.Filter:Code:
createFilterFn: function(filters) {
return filters && filters.length ? function(candidate) {
var isMatch = true,
length = filters.length,
i, filter;
for (i = 0; isMatch && i < length; i++) {
filter = filters[i];
if (!filter.disabled) {
isMatch = isMatch && filter.filterFn.call(filter.scope || filter, candidate);
}
}
return isMatch;
} : function() {
return true;
};
}
This is bug or am I doing something wrong?P.S. Now I just changed createFilterFn method:
Code:
if (!filter.disabled && filter.filterFn)
change ViewModel dynamically
The following code words great:
But if I want to dynamically change this ViewModel data at runtime event(like selectionChange event) , nothing will be happend. for example :
can you help me if I did something wrong?
Code:
...
session: true,
initComponent: function () {
var me = this;
me.setViewModel({ data: { foo: { RowNo: 945 } } });
this.callParent();
}
...
But if I want to dynamically change this ViewModel data at runtime event(like selectionChange event) , nothing will be happend. for example :
Code:
...
session: true,
initComponent: function () {
var me = this;
me.setViewModel({ data: { foo: { RowNo: 945 } } });
me.on('selectionchanged',function(record){
me.setViewModel({ data: { foo: { RowNo: 888 /*or something from record */} } });
});
this.callParent();
}
...
can you help me if I did something wrong?
Change default theme
[unable to retrieve full-text content]Hello, How can I set default theme (not from cmd)?
Inscription à :
Articles (Atom)