Title: Tree search and Scroll to Post by: PaulMcGuinness on July 08, 2013, 08:40:15 AM Hi All,
I've managed to implement a pretty functional 'search' facility for any easyUI tree, and I can get it to highlight and select the appropriate node. What I can't do is see to get the jQuery .scrollTo to work with the div, ul or anything within the tree. I should point out that this tree is in a Dialog box (although I can't see that would make any difference) Any help or suggestions on a viable ".scrollTo' implementation would be greatly appreciated. Cheers! Paul Code:
Title: Re: Tree search and Scroll to Post by: stworthy on July 09, 2013, 01:21:54 AM If you want to scroll the tree, please try the code below:
Code: var p = $('#' + sTree).parent(); // the parent container Title: Re: Tree search and Scroll to Post by: PaulMcGuinness on July 09, 2013, 03:02:44 AM Nope... doesn't work. Is it because it is within a Dialog do you think?
|