I am dynamically expanding a tree grid structure and I am attaching an “onOpenEnd” event to the grid. The node expands correctly, however, the event never fires - I have an alert in the beginning of the function that never gets displayed. I also attached an “onOpenStart” event to the grid and that is working fine. Is there anything else that has to be done for the “onOpenEnd” event that is different than other events on the grid?
Can you please direct me to an xml file in the samples that I can use to create a small example of dynamic node loading? Or, even better, a sample with a static xml file that is an example of the “onOpenEnd” event working correctly? I would like to test a known working example but the ones in the docs seem to have dynamically loaded data that I do not have access to.
Thank you.
Can you please direct me to an xml file in the samples that I can use to create a small example of dynamic node loading?
Please check example here dhtmlx.com/docs/products/dht … _open.html
I don’t have the php. Can you send me the static xml file or direct me to an existing one?
I saved the web page and the php page to my computer and I am getting a load xml error when I try to run the html page.
Issue with static xml file confirmed and fixed. Fix will be included at the next dhtmlxTreeGrid version. If you need changes immediately please contact support@dhtml.com and provide you ref. ID.
>>I saved the web page and the php page to my computer and I am getting a load xml error when I try to run the html page.
Examples with php should be launched from http server.
I am unclear about what got fixed. Was the onOpenEnd() event error confirmed and fixed? If not, what was?
Thanks
Was the onOpenEnd() event error confirmed and fixed?
Yes, error was confirmed and fixed. To get fix you need to contact support@dhtmlx.com.
I sent an email about half an hour ago with ref number.
I am using the new file and the event now fires, but it fires before the grid has been expanded. I thought it was supposed to be fired after the row has been expanded? If not, which event should I be using to fire AFTER the row has been expanded dynamically already?
thanks.
onOpenStart Event - occurs after an item in the tree got the command to open/close, but before this item was opened/closed; also occurs for unclosable nodes and nodes without open/close functionality - in that case the result of the function will be ignored;
onOpenEnd Event - occurs after an item in the tree got the command to open/close and related change in the structure was processed (that includes data loading in case of treegrid in dynamical loading mode).
dhtmlx.com/dhxdocs/doku.php?id=d … t_handling
I know that is what the documentation states, but that is not the behavior I am seeing with the dhtmlxtreegrid.js that was sent to my email. Could you please check the file you sent me to make sure? I have an alert statement in my onOpenEnd() event and this event fires BEFORE I see the row expand.
thanks.