[CLOSED] [MVC] LoadData in gridPanel with directMethod

  1. #1

    [CLOSED] [MVC] LoadData in gridPanel with directMethod

    Hi guys,

    i would like load data in my gridPanel with a directMethod.
    when i try with
    X.GetCmp<GridPanel>
    , object doesn't have any store, when i try with
    X.GetCmp<Store>
    App.object is undefined. i try with load data or dataSource and dataBind.

    Direct Methode
    public ActionResult LoadAutoTemplate(int idTemplate)
            {
                TIOMembershipUser currentUser = _memberShipService.GetUser();
                AutomatedConfigReport config = _reportingManagerService.GetAutomatedConfigByTemplate(currentUser.UserInfos.GroupId, idTemplate);
                if (config != null)
                {
                    X.GetCmp<TextField>("txtNbJourAuto").SetValue(config.NbDayAfterEndReport);
                    X.GetCmp<ComboBox>("ComboAutoPeriod").SetValue(config.Period);
                    X.GetCmp<ComboBox>("ComboAutoFrequency").SetValue(config.Frequency);
                    X.GetCmp<Store>("StoreReciptientEmail").LoadData(config.ListUserAssociated);
                }
                else
                {
                    X.GetCmp<TextField>("txtNbJourAuto").SetValue(1);
                    X.GetCmp<ComboBox>("ComboAutoPeriod").SetValue(1);
                    X.GetCmp<ComboBox>("ComboAutoFrequency").SetValue(1);
                }
                return this.Direct();
            }
    Regards
    Last edited by Daniil; Nov 05, 2013 at 8:30 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Try to send Store's Id as a parameter like in this post: http://forums.ext.net/showthread.php...ll=1#post85311

Similar Threads

  1. Replies: 0
    Last Post: Feb 05, 2013, 8:12 AM
  2. [CLOSED] How to call store.loadData()?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 12, 2012, 3:40 PM
  3. Store.loadData()
    By glenh in forum 1.x Help
    Replies: 2
    Last Post: Dec 05, 2011, 3:34 AM
  4. About Ext.Net Store.loadData
    By caoit in forum 1.x Help
    Replies: 0
    Last Post: Apr 26, 2011, 2:41 AM
  5. Ext.Net Store.loadData
    By cleve in forum 1.x Help
    Replies: 4
    Last Post: Jun 29, 2010, 4:19 PM

Tags for this Thread

Posting Permissions