[CLOSED] How to load store from javascript, MVC

  1. #1

    [CLOSED] How to load store from javascript, MVC

    Hi,

    I am trying to upgrade from 1.0 to 2.0. I am currently using

    grid.store..loadData({ data: myData}); but this does not work with 2.0. Please can you outline the new syntax for doing this.
    Last edited by Daniil; Jul 13, 2012 at 7:24 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Now the loadData method expects an array of the records. Please try:
    grid.getStore().loadData(myData);
  3. #3
    Hi,

    i just got around to trying it out but the getStore() method does not exists. See error below:

    Object doesn't support property or method 'getStore'.

     gpApplicationServerConfiguration.getStore().loadData(result.result.ApplicationServersInformation);
    Last edited by Daniil; Jul 18, 2012 at 6:46 AM. Reason: Please use [CODE] tags
  4. #4
    Hi,
    Sorry I realized that i was not using the namespace (App) to reference my controls.

Similar Threads

  1. Problem with Panel Load From JavaScript
    By osef in forum 2.x Help
    Replies: 0
    Last Post: Jun 02, 2012, 6:09 AM
  2. load iframe from javascript
    By pintun in forum 1.x Help
    Replies: 5
    Last Post: Dec 27, 2011, 3:15 PM
  3. [CLOSED] gridpanel store does not load dynamically from javascript
    By pattake in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Mar 21, 2011, 6:31 PM
  4. [CLOSED] Store Load-handler cant reload child store
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 04, 2011, 7:56 AM
  5. Replies: 4
    Last Post: Dec 01, 2010, 10:48 AM

Posting Permissions