CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 11/28/2003 9:15:48 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 18 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
Arjen Oetomo
Asp.Net User
Solution: Simple server-side workaround for the tree control drawing bug on certain browser versions11/28/2003 9:15:48 AM

0/0

Another way to get around this bug was a client-side solution. In fact this is the best workaround solution, but you have to tell all your visitors to set the internet option:
Go to IE Settings, on the "General Tab" in Temporary Internet Files.
Set "Check for Newer Version of Stored Pages" to "Never" or "Automatically" on the client machines.

Instead, I was looking for a server-side solution for this problem:
Disabling the + / - clickevents which causes the tree to lock up on certain browsers when the +/- are clicked a couple of times. (the bug only occures on some IE6 browser version with XP when you click on +/-).
If the collapse and expand events dont trigger a postBack anymore, the .HTC file and images are not refreshed and the bug cannot occur. This, ofcourse, only works if you dont need the tree to postback on collapse/expands.

What I did to make this work was:

- set the tree to autoPostBack=False
- add explicit postBack calls in javascript just for the click and check events. Be sure to replace myTree with your tree-ID:


Me.myTree.Attributes.Item("oncheck") = "javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncheck', this.clickedNodeIndex); window.setTimeout('__doPostBack(\'myTree\',\'\')', 0, 'JavaScript');"
Me.myTree.Attributes.Item("onselectedindexchange") = "javascript: if (event.oldTreeNodeIndex != event.newTreeNodeIndex) this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex); window.setTimeout('__doPostBack(\'myTree\',\'\')', 0, 'JavaScript');"


Note:
Instead of calling the __DoPostBack function you better write your own postBack function since its part of the inner ASP.Net framework. The function only gets added when there are 1 or more controls with AutoPostBack=True on the page.

Hope this helps out others, since it worked for me.

Greetings,

Arjen O.
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
TheMSsForum.com >> Winforms >> a nullpointer in drawing.dll?? bug ... There is no TreeView control for me to navigate through to select a folder. .... version of de class dll? Luis Tag: a nullpointer in drawing.dll?? bug? ...
SmartFTP Client 2.0 Change Log - SmartFTP Forums Added dynamic timeout for server side hash calculation (XMD5, etc). ..... Local Browser tree control is respecting the Windows Explorer "Hide protected ...
REPORT YOUR BUGS 2.0 - ASP.NET Forums the Microsoft tree view control has a few bugs . .... event in the code behind file add - where button1 is the server side submit button ...
CodeProject: Web Ink/Drawing Control. Free source code and ... An article on creating and using a web browser (IE only) compatible ink or drawing control using the Microsoft Tablet PC SDK version 1.7.
Release Notes - New in this Release Tree control: A special feature in the tree control in SAP GUI for Windows is .... caused the control framework on the server side to be uninitialized. ...
CodeProject: XML TreeView Control. Free source code and ... Released Version 1.0.0.2 on 2nd September 2005 [Bug fix: XML-Comments]. .... I would like to use the XML TreeView Control in the commercial products. ...
BSBlog » mercurial In the brave new world of distributed version control, history is no ..... tree… please don’t expect much more than “it builds” yet… the browser won’t start ...
Release Bulletin Appeon 2.7 for PowerBuilder for Windows Release ... Workaround: Immediately after installing Appeon Server on the primary server, ..... If the AddPicture function is executed for a TreeView control, ...
internetexplorerprogrammingbugs | Channel 9 All non-programming-related bugs should go in InternetExplorerBugs ..... Workaround: add the element to the DOM tree, allow the script to finish executing, ...
Java Platform Migration Guide Version 1.3 to 5.0 If the browser is launched from a desktop icon or menu, use the Java Plug-in .... itself stays on the server side. This change improved Swing performance, ...




Search This Site:










need help for treeview. msdn example doesnt work

is it possible to call treeview javascript function from javascript :) ?

i need your opinion re: treeview and datalist on an .aspx page

problem deploying microsoft controls (multipage etc...)

adding forms or controls to a tab strip

get the value of the selected node

problem showing data in a treeview

how to add a check box to a tree node

build project very slow !

check event called twice??

toolbar - how to navigate to other pages?[:s]

problem in the alignment of the nodes in a tree

ie webcontrols: tabstrip not displaying/behaving right

toolbar question. how do i program my buttons

treeview control

treeview with xml and xsl

how to get the content of the controls in tab & multipage

expanding a specific treenode on a treeview control

treeview expand doesn't work. urgent

treeview error: class not registered

buiding something like fuel gauge

treeview filled, but shows up empty

tabstrip, javascript getattrbute

treeview creating the dll

error : this is page number two, and this page view is selected!

cant get multipage to work properly.

reset button

how to make treeview work on everymachine from the server...

transparent menus -- not possible?

how do i change the width of a tab?

  Privacy | Contact Us
All Times Are GMT