0
Ich habe ein DHTMLX-Gitter und ich habe keine Grenzen für die Zeilen und Spalten. Ich habe ihre Foren überprüft und nicht wirklich etwas gefunden. Ich bin ziemlich neu in diesem Raster. HierWie haben Sie Grenzen im DHTMLX-Raster?
ist das Markup
<div id="grRoyalHistory" class="col-lg-offset-2 col-md-offset-2 col-sm-offset-2 col-xs-offset-2" style="width:100%;">
</div>
und hier ist das JavaScript
function ShowRoyalHistoryGrid(data) {
var myGrid = new dhtmlXGridObject('grRoyalHistory');
myGrid.setHeader("RoyalHistoryID,No,RoyaltyInst,Name,Comment");
myGrid.setInitWidthsP("5, 5, 10, 15, 65");
myGrid.setColumnIds("RoyalHistoryID,IndexNum,RoyalIns,Name,RoyalComment");
myGrid.setColAlign("center,center,center,left,left");
myGrid.setColTypes("ro,ro,ro,ro,ro");
myGrid.setColSorting("int,int,int,str,str");
myGrid.setColumnHidden(0, true);
myGrid.enableAutoHeight(true);
myGrid.attachEvent("onRowSelect", function (id, ind) {
var selectedID = myGrid.cells(myGrid.getSelectedRowId(), 0).getValue();
GetRoyalHistoryToUpdate(selectedID);
});
myGrid.setSizes();
myGrid.enableMultiline(true);
myGrid.objBox.style.overflowX = "hidden";
myGrid.enableAutoHeigth(true);
myGrid.init();
var abc = data;
myGrid.parse(abc, "js");
}