hw_2x_vc 发表于 2017-3-14 17:58:10

Grid.load

<div class="mini-fit" >
            <div id="grid1" class="mini-datagrid" style="width:100%;height:100%;" borderStyle="border:0;"
                url="/sysEnum/LoadItem"
                showFilterRow="true" allowCellSelect="true" allowCellEdit="true">
                <div property="columns">            
                    <div field="enumvalue" width="120" headerAlign="center" allowSort="true">枚举值
                        <input property="editor" class="mini-textbox" style="width:100%;"/>
                    </div>      
                    <div field="enumtype" width="120" headerAlign="center" allowSort="true">枚举类别</div>                  
                    <div field="enumcode" width="100"  headerAlign="center" allowSort="true" >枚举编号</div>               
                </div>
            </div>  
        </div>


function onNameFilterChanged(e) {
            var textbox = e.sender;
            var key = textbox.getValue();

            var node = tree.getSelectedNode();
            if (node) {
                grid.load({ pk_cpsenum: node.id, key: key });
            }
        }

  grid.load({ pk_cpsenum: e.node.id }); 这一句没有执行 C# 后台的方法
我用的是MVC模式
url="/sysEnum/LoadItem" 这个写法是不错误了


felt 发表于 2017-3-15 09:51:02

我们有mvc的例子,你可以下载参考一下
http://miniui.com/bbs/forum.php?mod=viewthread&tid=47036&extra=page%3D1
http://miniui.com/bbs/forum.php?mod=viewthread&tid=27527&extra=page%3D1
页: [1]
查看完整版本: Grid.load