Categories | Question details Back To List | ||
How to change treegrid + image onOpenStart? Hello support! Some times loading treegrid sub node data take some time so: I would like to change standard + image to ajax spinner onOpenStart, any suggestions? Answer posted by dhxSupport on Apr 29, 2009 09:48 Please check this article http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=recent&q=2225 Answer posted by ez on Apr 30, 2009 01:35 Thanks for tip, but I have some problems: I manage to change image on onOpenStart event, but I don't know how to change it back after fetching sub nodes. I try to bind up to onXLE event but on this event I don't have information about what row was opened. Any ideas? Answer posted by dhxSupport on Apr 30, 2009 03:27 To detect if node was expanded\collapsed you can use event "onOpenEnd". Event handler has parameters: ID of node which will be opened/closed, current open state of tree item. -1 - item closed, 1 - item opened. Event handler should return true - confirm opening/closing; false - deny opening/closing. Answer posted by ez on Apr 30, 2009 03:37 Do onOpenEnd is called after row opening or after dynamic sub node data fetching end? If after opening then its to fast for me, the sun node data are not loaded yet Answer posted by dhxSupport on Apr 30, 2009 05:01 "onOpenEnd" raised after item in treeGrid was fully loaded. |