Categories | Question details Back To List | ||
[dhtmlxtree] Not deleting items on smartRefreshItem() Hi! I'm trying to refresh a tree item with smartRefreshItem(). All works fine, but nodes that aren't present in the XML, do not get deleted from the tree. I'm using version 'pro_v16_71114'. Is it possible that there's a bug in this version that's causing my problem? And if so, is there a possibility to upgrade my version at a reduced price? Answer posted by Support on Jun 17, 2008 09:37 >> All works fine, but nodes that aren't present in the XML The smartRefreshItem functionality updates only single level of tree, if you need to update multiple levels at once you need to use smartRefreshBranch ( which works nearly the same, but can update nested branches ) Also, please be sure that you have unique IDs for each item in tree. There were no fixes related to smartRefreshItem functionality, but if you contact us directly at support@dhtmlx.com and provide your ref. number - we will send you a latest js code for dhtmlxtree. >>And if so, is there a possibility to upgrade my version at a reduced price? Please contact sales department - sales@dhtmlx.com Answer posted on Jun 17, 2008 11:02 Thanks for your answer! smartRefreshBranch() did the trick! Strange that text and icons did get updated. Maybe the documentation needs a little more explanation about this. Also, I noticed that the parameters aren't described in the docs anymore (itemId, source). Now there's no need for an upgrade (for a while, at least - but all products are getting better and better; at some point it becomes interesting to upgrade). |