Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by mtyson on Aug 06, 2009 09:49
open dhtmlx forum
How to get the Grid object from the DOM

I want to get the grid object (in order to call setSizes()) when I am traversing the DOM (ie, I have the gridbox and the rest of the grid DOM). Possible? How to do it?
Answer posted by Alex (support) on Aug 07, 2009 02:29

Grid object is got by grid = new dhtmlXGridObject(container_id) or if you use html initialization using one of the following methods:

1) grid = new dhtmlXGridFromTable(table_id);

2) <table class="dhtmlxGrid" oninit="doAfterGridInit()" name="grid" ...>...

<script>

function doAfterGridInit(){

grid.setSizes()

}