Results 1 to 3 of 3

Thread: Optimization problem, getView Slow loading page

  1. #1

    Default Optimization problem, getView Slow loading page

    Hello all! I am French, sorry for the mistakes.
    My problem is that my page takes about 1 minute 30 seconds to load, but I found it to be since I am sure to all grid panel refresh the page without the update page.
    I had to load causing the click of the menu as this example:
    verif function ()
    {


    alert ('VERIF to false')
    return false;}
    }


    menu {
    xtype: 'menu',
    items: [{
    text: 'RECIPE'
    iconCls: 'edit',
    handler: function () {


    var = function verif ();
    if (function == true) {var grid = Ext.getCmp ('monGridPanel14'). getView ();
    grid.getStore (). load ();}


    monGridPanel14.show ();
    }
    }]
    }
    So I thought to do a function verif () would be false from the beginning on and that would result in not charging 2 times the grid, but its not happening!
    I also seek how to verif the function () to true: when we have finished loading the site!

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    The code you have provided doesn't look valid:

    Code:
    var = function verif ();
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3

    Default Sorry

    I had pasted the paragraph ,directly in google translate !!!
    It's my fault!!
    For call my function i do :
    var fonction = function verif();
    function verif ()
    {
    alert ('VERIF to false')
    return false;}
    }


    menu {
    xtype: 'menu',
    items: [{
    text: 'RECIPE'
    iconCls: 'edit',
    handler: function () {


    var fonction = function verif ();
    if (fonction == true) {var grid = Ext.getCmp ('monGridPanel14'). getView ();
    grid.getStore (). load ();}


    monGridPanel14.show ();
    }
    }]
    }

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •