<div id="faultTree" allowdrag="false" allowdrop="true"
class="mini-treegrid" expandοnlοad="false" idfield="Id" parentfield="ParentId" resultastree="false" showtreeicon="true" allowCellSelect="true" style="width:100%;height:100%;" treecolumn="Identifier" allowCellEdit="true" > <div property="columns"> <div type="indexcolumn" width="12"></div> <div field="Id" name="Id" visible="false">Id </div> <div field="SetId" name="SetId" visible="false">系统Id</div> <div field="Identifier" name="Identifier" >标识符</div> <div field="DoorType" name="DoorType" >门/事件类型</div> <div field="Comment1" name="Comment1" >门/说明</div> <div name="ProductName" field="FTUserMemo1" displayField="ProductName" width="200" allowSort="true">对应产品 <input id="productTree" property="editor" class="mini-treeselect" multiSelect="false" showFolderCheckBox="false" expandOnLoad="true" onvaluechanged="valueChanged" showClose="true" oncloseclick="onCloseClick" textField="Name" valueField="Id" parentField="ParentId" allowInput="false" /> </div> </div> </div>
var faultTree = mini.get("faultTree");
faultTree.setUrl("Ajax/select.ashx?method=fta&projectname=" + projectname + "&systemname=" + sysname); faultTree.load(); faultTree.expandAll();var editor = faultTree.getCellEditor("ProductName");
editor.setUrl("Ajax/select.ashx?method=tree&projectname=" + projectname + "&systemname=" + sysname);