I’m using a custom lightbox made from a popup dhtmlx window with a form attached and I need some help figuring out how to integrate my form with the scheduler. Right now, I have
scheduler.attachEvent("onEmptyClick", function(){
scheduler.showLightbox();});
This shows my popup form alright, but also shows the default event creation – but the two aren’t linked in anyway. Is there anyway to connect them?
Also, when I try to close the window, I get two errors from dhtmlxwindows.js:
“w is undefined” (line 477), and “win is undefined” (line 2168).
Thanks for getting back to me. I’ve attached a demo with everything except the dhtmlx files. I’m using dhtmlxSuite 2012 Rel.1 (DHTMLX 3.5) Professional edition build 120822 and dhtmlxScheduler PRO v.3.7 build 130220.
I only get the errors if the form was opened by clicking on the scheduler – when I use the toolbar button to open it, it works fine.
I’m still having trouble with this. Since the form is attached to a dhtmlx container component, it doesn’t really have an html container, so I’m not sure what to reference in that code snippet. Also, I’m getting the error when I try to use the close button that’s built in to the window. The form buttons are not producing an error – they’re just not working.
I’ve implemented the code you attached, but now none of the form controls are working. When the form is opened, either through the toolbar button or by clicking the scheduler, the whole page freezes up
dhxLayout.dhxWins.window(“addEvent”).hide(); doesn’t seem to work at all, nor does form.clear();. And, of course, no events are added.
The close button at the top of the window works, but the page stays frozen.
On a possibly related note, is there a way to bind a form to the scheduler the way you can with grids?
The above attached sample contains all necessary modifications, and works correctly ( there is no effects which you are describing ) Have you used the same code or some different one ? In case of different code can you provide a demo link or a sample where it can be checked ?
is there a way to bind a form to the scheduler the way you can with grids?
Unfortuantely it is not possible
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan