Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
Webdatatree - client side - javascript - scrollIntoView - does not scroll into the node
posted

Hi,

Using webdatatree in 'ModalDialog' pop up, tried using 

node._element.scrollIntoView(tree); - But it throws exception saying 'type mismatch'.

node._element.scrollIntoView(true); - does not scroll into the node selected.

Please suggest asap. 

Parents
No Data
Reply
  • 17590
    Offline posted

    Hello Jeevitha,

    Thank you for posting in our community.

    In order to scrollWebDataTree to the selected node what I can suggest is handling Initialize client side event. In this event you could scrollToNode function to scroll to any node of your choice. For example:

     

    function WebDataTree1_Initialize(sender, eventArgs)

    {

    var tree = sender;

    var nodesCount = sender.getNodes().get_length();

    var node = sender.getNodes().getNode(nodesCount - 1);

    var treeElement = sender.get_element();

    sender._scrollToNode(node, treeElement);

    }

     

    Additionally, I noticed that the similar scenario has been discussed in the following forum thread that you might consider helpful:

    http://es.infragistics.com/community/forums/t/51978.aspx

    I hope you find my information helpful.

    Please let me know if you need any further assistance with this matter.

     

Children