Results 1 to 2 of 2

Thread: EXTJS 6.5 Row Widget not able to access child store

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2016
    Posts
    12

    Default EXTJS 6.5 Row Widget not able to access child store

    I am having trouble using rowwidget plugin. Basically I am trying to load the rowwidget child using the expandbody event of the parent grid. I can load the parent store and child store as well, but having issues with assigning the child store to the parent store. Please help.
    //ParentController - called from expandbody listener in the view


    onParentExpand
    :function( rowNode, record, expandRow, eOpts){
    var childStore =this.getStore('childStore ');// store from viewModel

    childStore
    .load({
    extraParams
    :{
    param1
    : record.data.param1,
    param2
    : record.data.param2
    }
    });The above code is throwing this error:
    UncaughtTypeError: store.isLoaded isnot a function
    at
    constructor.setStore (ext-all-rtl-debug.js?_dc=1505247124964:84851)Can someone please help ?

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2016
    Posts
    12

    Default

    After spending hours on this widget, these are my take aways... (I did not take the expandBody approach..)

    1. idProperty is mandatory for the Row Widget to work correctly (for models that need explicit Id mapping)

    2. My widget wont bind to the dynamic store without the below code

    onWidgetAttach: function (plugin, bodyComponent, record) {
    bodyComponent.getStore().load({
    params: {
    id: record.get('id'),
    name: record.get('name'),
    city: record.get('city'),
    state: record.get('state')
    }
    });
    }

    3. Also, the widget wont bind to the viewmodel store. I had to create a global store (should research on this)

Similar Threads

  1. Replies: 2
    Last Post: 15 Oct 2012, 3:44 AM
  2. Store readers: Child element access.
    By Jem in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 30 May 2012, 5:36 AM
  3. Store readers: Child element access.
    By Jem in forum Community Discussion
    Replies: 0
    Last Post: 29 May 2012, 5:56 AM
  4. was Premium: child window in com.extjs.gxt.ui.client.widget.Window
    By Arno.Nyhm in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 25 Sep 2009, 5:44 AM

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
  •