Hi Telerik :)
I take a copy of your example in demo "transfer Employees" and apply on it LoadOnDemand property for nodes and groups and collapse all nodes in first time loaded,
the problem is when load after expanding a node the button "remove" not be able to click !
I take a copy of your example in demo "transfer Employees" and apply on it LoadOnDemand property for nodes and groups and collapse all nodes in first time loaded,
the problem is when load after expanding a node the button "remove" not be able to click !
5 Answers, 1 is accepted
0
Hello Alaa,
I have tested the described scenario but could not observe the unusual behavior.
Would you please elaborate a little bit which exactly part of the click is not working in your case -if the jQuery click in the pageLoad is not triggered or you the AjaxRequest is not handling the logic correctly?
Regards,
Plamen
Telerik
I have tested the described scenario but could not observe the unusual behavior.
Would you please elaborate a little bit which exactly part of the click is not working in your case -if the jQuery click in the pageLoad is not triggered or you the AjaxRequest is not handling the logic correctly?
Regards,
Plamen
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

Alaa'
Top achievements
Rank 1
answered on 30 Apr 2014, 08:01 AM
hello , thanks for your reply
first i run the demo "transfer employees" and it run without any problem whit drag and drop employees and for remove employees ,
but if i use the property "LoadOnDemand" property for nodes and groups
and when ORGChart.Databind i set ORGChart.CollapseAllNodes()
--on page the first node will display
-- i press expand button to show the next level of nodes
-- if i press the remove button it failed to Click it and perform ajaxrequest !
-- if i make a drag and drop for employee then press remove every thing will be ok
Is that clear ??
first i run the demo "transfer employees" and it run without any problem whit drag and drop employees and for remove employees ,
but if i use the property "LoadOnDemand" property for nodes and groups
and when ORGChart.Databind i set ORGChart.CollapseAllNodes()
--on page the first node will display
-- i press expand button to show the next level of nodes
-- if i press the remove button it failed to Click it and perform ajaxrequest !
-- if i make a drag and drop for employee then press remove every thing will be ok
Is that clear ??
0
Accepted
Hi Alaa,
Thank you for elaborating the issue.
I could successfully replicate it and here is the code that I added to solved it at my side:
Hope this will be helpful.
Regards,
Plamen
Telerik
Thank you for elaborating the issue.
I could successfully replicate it and here is the code that I added to solved it at my side:
function
OnClientGroupPopulated(sender, args) {
$(
".rocRemoveItemButton"
).click(
function
myfunction(e) {
removePerson(e);
})
}
function
OnClientNodePopulated(sender, args) {
$(
".rocRemoveItemButton"
).click(
function
myfunction(e) {
removePerson(e);
})
}
Hope this will be helpful.
Regards,
Plamen
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

Alaa'
Top achievements
Rank 1
answered on 07 May 2014, 08:10 AM
Thank you , it work
i have another problem , "the ORG chart not expand all levels"
-when i drop item from list it expand all levels , is their any hint for this problem ?
i have another problem , "the ORG chart not expand all levels"
-when i drop item from list it expand all levels , is their any hint for this problem ?
0
Hello Alaa,
I have tested the scenario one again but could not replicate the behavior you described . Would you please provide again the steps and code that need to be added to the demo page so we could replicate the issue and be more helpful?
Regards,
Plamen
Telerik
I have tested the scenario one again but could not replicate the behavior you described . Would you please provide again the steps and code that need to be added to the demo page so we could replicate the issue and be more helpful?
Regards,
Plamen
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.