dhtmlXWindows Event vs. dhxLayout.dhxWins Event

OK, so either I am missing something or it is a bug…



Scenario:



Attaching an “onContentLoaded” Loaded event. Note that this does not apply to other events I am using such as “onClose” as that fires correctly.



// This Does Not Work (Event Never Fires)



dhxLayout.dhxWins.createWindow(winId, 0, 0, 400, 160);

dhxLayout.dhxWins.window(winId).attachEvent(“onContentLoaded”,function(win){

    alert(“Hit Here”);

});





// This Does Not Work (Event Never Fires)



var dialog = dhxLayout.dhxWins.createWindow(winId, 0, 0, 400, 160);

dialog.attachEvent(“onContentLoaded”,function(win){

    alert(“Hit Here”);

});







dhxLayout.dhxWins.createWindow(winId, 0, 0, 400, 160);

dhxLayout.dhxWins.attachEvent(“onContentLoaded”,function(win){

    alert(“Hit Here”);

});



This Works (the global handler), but i need it window specific… Seeing as attaching a window specific “onClose” in the same failed scenarios above does work, Not sure why it doesn’t with the “onContentLoaded”…


Hello,


onContentLoaded event can be applied only to dhxWins:


dhxLayout.dhxWins.attachEvent(“onContentLoaded”,function(win){


if(this.window(winId)==win) alert(“Hit Here”);
});