简体   繁体   中英

gridx module undefined error while loading

I'm having issues with Gridx while using IndirectSlect and below is my code

<div data-dojo-type="dijit.layout.ContentPane" data-dojo-attach-point="metadataGrid" data-dojo-props="region:'left'">
     <div id="updateMetadataManagerGrid" data-dojo-attach-point="updateMetadataManagerGrid" data-dojo-type="gridx.Grid" 
     data-dojo-props="cacheClass: 'gridx/core/model/cache/Sync',barTop: [
              { content: '<h3>Document Update Requests</h3>', style: 'color: blue;' },
               {pluginClass: 'gridx/support/QuickFilter', style: 'text-align: right;'}
          ],modules: [
                'gridx/modules/IndirectSelect',
                'gridx/modules/RowHeader',
                'gridx/modules/Pagination',
                'gridx/modules/pagination/PaginationBar',
                'gridx/modules/SingleSort',
                'gridx/modules/Filter',
                'gridx/modules/filter/FilterBar',
                'gridx/modules/extendedSelect/Row',
                'gridx/modules/VirtualVScroller',
                'gridx/modules/extendedSelect/Row',
                'gridx/modules/Focus',
                'gridx/modules/move/Row',
                'gridx/modules/CellWidget',
                'gridx/modules/Edit',
                'gridx/modules/ColumnResizer',
            ]",selectRowTriggerOnCell: true,>

     </div> 
     </div>

When I run my code, in IE&Firefox console, I see an error message as shown below. Basically, two modules are not found while gridx creation.

The 1-th declared module can NOT be found, please require it before using it: gridx/modules/IndirectSelect


The 2-th declared module can NOT be found, please require it before using it: gridx/modules/RowHeader

Please help.

Regards, Manju

You have to define the modules in the file that you use the grid.

在此输入图像描述

And then you call it in the grid declaration.

var grid = new Grid({modules: [indirectSelect, RowHeader]})

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM