Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Steve Wyatt on Feb 13, 2008 12:23
open dhtmlx forum
Grid init function

Could you please explain what the grid init() function does? Also, in relation to the first question, what grid functions or variables are supposed to be called or set before a call to init() is made?
Answer posted by Support on Feb 14, 2008 01:52
grid.init() - this function renders grid, basically before this command you need to have at least

    grid.setHeader( - define column count and header labels
    grid.setInitWidths( - define initial widths of columns

most other commands may be executed before or after grid.init

In case of loading configuration from XML - you need not grid.init at all ( it will be executed automatically )