This is a migrated thread and some comments may be shown as answers.

Problem with VisibleDuringInit=false

0 Answers 589 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Telerik Admin
Top achievements
Rank 1
Iron
Telerik Admin asked on 07 Nov 2008, 09:46 AM

There is a problem With the RadSplitter for ASP.NET AJAX in RadControls for ASP.NET AJAX Q3 2008 in Internet Explorer (6 and 7) when the VisibleDuringInit property is set to "false" - the content of the RadPanes remains hidden even after the RadSplitter has finished its initialization. The problem does not exist in FireFox, Safari, Opera, and Chrome.

Fix for the problem:

Assign a handler for the OnClientLoaded event of the RadSplitter:

<telerik:RadSplitter ID="RadSplitter1" runat="server" VisibleDuringInit="false"   
    OnClientLoaded="OnClientLoaded" 

and execute the following code in it:

<script type="text/javascript">  
function OnClientLoaded(sender, args)  
{         
    sender.get_element().style.visibility = 'inherit';  
}  
</script> 

The problem is due to a bug in IE which fails to re-render its child elements when a parent's CSS visibility setting is changed.
Essentially the workaround forces IE to re-render these elements.

Screenshots of the page showing the problem and with the applied fix are attached to this thread.

Please accept our sincere appologies for the problem. The omission is clearly on our end, and we are deeply sorry for the frustration caused. This thread provides a workaround, that we believe is fairly easy and in addition to this, should you need a fixed Telerik.Web.UI build, please contact us with a support message, and we will send you a custom build DLL as well.

Note: This topic is for information purposes only and is locked. If there are any additional issues related to this problem, please open a support ticket or use the forums.

Tags
Splitter
Asked by
Telerik Admin
Top achievements
Rank 1
Iron
Share this question
or