This is a migrated thread and some comments may be shown as answers.

Use LoadOnDemand Property

5 Answers 37 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Alaa'
Top achievements
Rank 1
Alaa' asked on 24 Apr 2014, 10:48 AM
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 ! 

5 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 29 Apr 2014, 07:40 AM
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
 

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 ??




0
Accepted
Plamen
Telerik team
answered on 05 May 2014, 05:47 AM
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:
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 ? 
0
Plamen
Telerik team
answered on 12 May 2014, 05:13 AM
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
 

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.

 
Tags
OrgChart
Asked by
Alaa'
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Alaa'
Top achievements
Rank 1
Share this question
or