In all browsers (FireFox, chrome, opera, safari), Here is the complete scenario:
First from a dhtmlx window(adressen) I show telefon window like this
function showTelefonFromAdressen()
{
win = dhxWinAdressen.createWindow("wins_adressen", 0, 10, 900, windowsHeight - 70);
win.setText("Telefon");
win.setModal(true);
dhxWinAdressen.window("wins_adressen").denyResize();
dhxWinAdressen.window('wins_adressen').button("park").hide();
dhxWinAdressen.window('wins_adressen').button("minmax1").hide();
dhxWinAdressen.window('wins_adressen').button("close").hide();
dhxWinAdressen.window("wins_adressen").attachURL("/moffice/moffice2012/view/adressen/telefon.html");
}
next on the load of telefon window, i fill my grid with data
function doOnTelLoad()
{
telefonGrid = new dhtmlXGridObject('telefonData');
telefonGrid.setImagePath("../../codebase/imgs/");
telefonGrid.setHeader("Anrede, Name, Funktion, Guppe, Telefon-NR, Mobil, Fax, Mail");
telefonGrid.setInitWidths("100, 100, 100, 100, 100, 100, 100, 100");
telefonGrid.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro");
telefonGrid.enableCellIds(true);
telefonGrid.attachEvent("onRowSelect", doOnRowSelected);
telefonGrid.init();
telefonGrid.setSkin("dhx_skyblue");
telefonGridQString = "/moffice/moffice2012/controller/adressen/getTelRecords.php";
telefonGrid.loadXML(telefonGridQString, function(){
telefonGrid.selectRow(0);
telefonGrid.setActive(true);
telefonGrid.selectCell(0,0,0,0,1);
});
}
It’s true that the first row is selected but the grid is not active ( the whole window is not active), to make the window active i need one more click inside it, and to active to grid I need to click on any row (after that click keyboard navigation works), I just don’t want that extra click.
I hope you understand me.