I am using the a screen layout which shows a grid in one of the cell. The grid has an on double click event which opens a window.
This window has 12 tabs. Each tab has a dhtmlxform. There are around 650 data elements and form fields.
So I need advice on the fastest and best way to make this work. Here’s what I am thinking:
When the screen is first accessed, after the all the cells in the layout have loaded, I call a windowInit() function to prepare the window for use. This function defines the window, attaches the tabs, attach the forms, create an empty data store, bind the forms to the data store and create all of the event handlers.
Is there a way to define the window/tabs/forms/event handlers without needed to actually show the window?
When the user double clicks on the row, the data store will ajax the 650 elements and setCursor(). Next the window will merely open because it has already been defined.
When the user closes the window, this should really be a hind() and then clear the forms.
When the user clicks on the data row in grid, follow the same outline as the 2nd step. I realize it may not be necessary to make the data store ajax the data if it already has it.
Does this sounds like a good plan? Any recommendations?