Use LoadOnDemand Property

6 posts, 1 answers
  1. Alaa'
    Alaa' avatar
    20 posts
    Member since:
    Apr 2014

    Posted 24 Apr 2014 Link to this post

    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 ! 
  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 29 Apr 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alaa'
    Alaa' avatar
    20 posts
    Member since:
    Apr 2014

    Posted 30 Apr 2014 in reply to Plamen Link to this post

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




  5. Answer
    Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 05 May 2014 Link to this post

    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.

     
  6. Alaa'
    Alaa' avatar
    20 posts
    Member since:
    Apr 2014

    Posted 07 May 2014 in reply to Plamen Link to this post

    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 ? 
  7. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 12 May 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017