如何在 dhtmlxGrid 中设置组合?
我做了类似下面的事情,但当我在单元格上单击时,我仍然看不到组合。我已经初始化了一个 dhtmlxwindow 并附加了一个 1c 布局。然后将网格附加到单元格a。
var dhxWindow = new dhtmlxWindow();
var popupWin = dhxWindow.createWindow('winName', xPos, yPos, width, hieght);
popupWin.setText(winTitle);
popupWin.setModal(true);
popupWin.denyPark();
popupWin.denyResize();
popupWin.show();
popupWin.centerOnScreen();
var layout = popupWin.attachLayout('1C');
var mygrid = layout.cells('a').attachGrid();
mygrid.loadXML('grid.jsp');
And my jsp:
<%@page contentType="text/xml" pageEncoding="UTF-8"%>
<rows>
<head>
<column width="50" type="ed" align="right" color="white" sort="str">Sales</column>
<column width="80" type="co" align="left" sort="str">Shipping
<option value="1">1 Day</option>
<option value="7">1 Week</option>
</column>
</head>
<row>
<cell></cell>
<cell></cell>
</row>
</rows>