Categories | Question details Back To List | ||
Dynamically Expanding a Tree Grid - onOpenEnd event not working 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. Answer posted by Support on Oct 28, 2009 02:36 >>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 http://www.dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/03_nodes_rows_manipulations/06_treeGrid_open.html Answer posted on Oct 28, 2009 05:52 I don't have the php. Can you send me the static xml file or direct me to an existing one? Answer posted on Oct 28, 2009 06:53 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. Answer posted on Oct 28, 2009 07:40 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. Answer posted on Oct 28, 2009 07:43 I am unclear about what got fixed. Was the onOpenEnd() event error confirmed and fixed? If not, what was?
Thanks Answer posted by Support on Oct 28, 2009 09:19 >>Was the onOpenEnd() event error confirmed and fixed? Yes, error was confirmed and fixed. To get fix you need to contact support@dhtmlx.com. Answer posted on Oct 28, 2009 09:27 I sent an email about half an hour ago with ref number. Answer posted on Oct 29, 2009 09:20 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. Answer posted by dhxSupport on Oct 29, 2009 09:56 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). http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxtreegrid:event_handling Answer posted on Oct 29, 2009 10:00 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. |