Search Type: Posts; User: fbchen

Search: Search took 0.01 seconds.

  1. Try this one:


    form = Ext.create('Ext.form.Panel', {
    keys: [{
    key: Ext.EventObject.ENTER,
    fn: function(){alert('It Fired');}
    }],
    listeners: {
    render: function(p) {p.getKeyMap();}
  2. Thank you for your reply, Mitchell.
  3. This is maybe a bug: ExtJs version is 4.1.0-beta-1. When call panel.getEl().switchOff(), the code run into an endless loop. Example code like this:


    <html>
    <head>
    <meta...
  4. Replies
    4
    Views
    1,104
    Thank you! According to shirtle's solution, I change my reload method as follow:


    /**
    * reload a tree node, and expand it
    * @param {Ext.tree.Panel} tree
    * @param {Ext.data.NodeInterface}...
  5. hi, I test your code, and change something, it works.
    1, add 'associationKey' to the 'hasMany' config, like this:


    hasMany:[
    {name:'itemData', model:'ItemModel', associationKey:...
  6. Replies
    1
    Views
    2,231
    Ext.data.Store.findRecord(String fieldName, String/RegExp value, [Number startIndex], , [Boolean caseSensitive], Boolean exactMatch)
    By default, the value is not exact matched in this method. In the...
  7. Replies
    4
    Views
    1,104
    Do you want to reload a tree node? If so, it seems that there is no reload method in the Ext.data.NodeInterface. In my option, to reload a node we must call a 're-expand' method, and this code works...
  8. Replies
    1
    Views
    489
    The tree node adds a default class 'x-tree-checked' upon the tree node is checked, so just define your css style. Try this:
    .x-tree-checked {
    text-decoration: line-through;
    color:...
  9. Thank you skirtle.
    Yes, there is not any listener when the TreeStore fireEvent('beforeload') on the root node expand. This is the reason. So I remove the expanded: true on the root node, and set...
  10. Hi, all! I encountered an odd problem when I use Ext-4.0.2a. I create a tree that will loads data from the server via AJAX proxy, and the root node is set to "rootVisible: false", and the code likes:...
Results 1 to 10 of 10