Hi, I am trying to create a datagrid table dynamically from javascript:
HTML Code:
<table id="ordersGrid"></table>
JAVA SCRIPT Code:
$("#" + FIELD_WEB_UI_GRID).datagrid({
columns: gridColumns,
frozenColumns: frozenCols,
singleSelect:true,
onRowContextMenu: launchRightCLickMenu,
onClickRow: onClickEntry,
toolbar: '#tablesToolbarEntries',
onAfterEdit:onEditClosed,
autoRowHeight: false,
height: 300,
width: 500
});
It works fine but I want the table to have a fixed height, always 300, despite the number of elements it contains.
Whenever I call 'appendRow' method, the row is created but it makes the table to grow down.
I thought "autoRowHeight: false" would change that behaviour but I can't find any difference after dissabling auto row height.
Thank you for your help.