A bug modification of the Microsoft Tree control in ASP.NET.

xiaoxiao2021-03-06  85

When using the Microsoft Tree control, found a bug (awesome BUG). When using Tree to make your own drop-down Tree combination selection control, it is found that when the Tree list is pop-up, the Tree is selected, because the status of Tree is invisible to visible, it will cause a focus movement problem. Solve analysis of this problem, can be resolved by modifications to TreeView.htc. Open the TreeView.htc under the NET installation / inetpub / wwwroot / webctrl_client / 1_0 directory, modify the 386 line content: AccessNode.focus (); Modify: if (element.style.visibility! = 'Hidden') AccessNode.focus ); Or: if (element.style.visibility == 'visible') AccessNode.focus (); problem can be resolved. I don't know much about JS, this is just a solution that I have found, giving a reference, if there is a better solution, please thank you!

转载请注明原文地址:https://www.9cbs.com/read-107812.html

New Post(0)