getAllRowIds not work

Hallo

i’m understand to use rowids.
I test with the sample

samples/dhtmlxGrid/06_events/01_events_grid.html

	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setHeader("Column A, Column B, Column C, Column D");
	mygrid.setInitWidths("100,250,80,*")
	mygrid.setColAlign("right,left,center,right")
	mygrid.setColTypes("ro,ed,ch,price");
	mygrid.setColSorting("int,str,str,str")
	mygrid.attachEvent("onRowSelect",doOnRowSelected);
	mygrid.attachEvent("onEditCell",doOnCellEdit);
	mygrid.attachEvent("onEnter",doOnEnter);
	mygrid.attachEvent("onCheckbox",doOnCheck);
	mygrid.attachEvent("onBeforeRowDeleted",doBeforeRowDeleted);
	mygrid.init();
	mygrid.setSkin("dhx_skyblue")
	mygrid.loadXML("../common/grid.xml");
	mygrid.submitOnlyChanged(false);
	var ids=mygrid.getAllRowIds();
	alert(ids);

…but the alert is empty? Why? :question:

Ok sorry - beginner’s mistake:

mygrid.loadXML("../common/grid.xml",function(){
var ids=mygrid.getAllRowIds();
alert(ids);
});

:mrgreen: