Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kenneth Cho on Apr 22, 2009 23:51
open dhtmlx forum
mark the interface as your demo-"Database Administrator"

Dear sir,

We are the pro-license user, we want to mark the interface as your demo-"Database Administrator".
We create the interface 2U and accordion 3 layer, but can not click incon in LHS(accordion) that display some detail in RHS(grid).
Could you tell us how to do that.

thank you very much .
Kenneth Cho
Answer posted by Support on Apr 23, 2009 05:35
When creating grid in right part of layout  , by attachGrid method, you had receive grid object reference

grid = layout.cells("b").attachGrid();

This reference need to be stored in some way ( or you can just use it without var prefix, which will made it globally accessible )
Inside accordion you can attach js code to any necessary element which will call code similar to next

grid.clearAll()
grid.load(url);

where url - path to server side script , which must return data for clicked item.