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

ImageButtons Not Visible

8 Answers 38 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michelle
Top achievements
Rank 1
Michelle asked on 08 Aug 2008, 01:29 AM
For some reason, ImageButton controls won't render when my RadWindows are openened.  I have to move the window with the mouse for the ImageButton to appear.  Plain Image controls render just fine.  Any thoughts?

8 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 08 Aug 2008, 08:46 AM
Hello Michelle,

I tried to reproduce the problem locally but to no avail. Can you please provide more information about your exact setup?



Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michelle
Top achievements
Rank 1
answered on 08 Aug 2008, 06:12 PM
Parent Page Setup: 
   Masterpage MP1 containing Masterpage MP2, which contains a content page (CP1).  That content page has a RadWindow object.  The content page also has a RadGrid.  I've written javascript to open the RadWindow when a user clicks the new button.  The RadWindow opens.

RadWindow Page Setup:
   Masterpage MP1 containing Content Page (CP2).  That content page is loaded into the RadWindow object.  There is a FormView on that content page.  On page load, the DefaultMode of the FormView gets set, depending on the query string. 

I use the FormView for inserts and updates, and the ImageButtons in the EditItemTemplate and InsertItemTemplate don't show on initial load of the RadWindow.  They only show up once I move the RadWindow. 

I can send code if you need.

Thanks!
Michelle 

0
Michelle
Top achievements
Rank 1
answered on 08 Aug 2008, 08:34 PM
I should also mention that ImageButtons outside the FormView seem to render properly.

Also, my application is AJAX-enabled. 

Additionally, this issue happens in IE 6.0.  It does not seem to happen in Firefox 3.0.1.
-----------------------------------------
I just figured out that if I add an ASP button control to my form (without any text, so the user can't see it), just before the ImageButtons, then the ImageButtons render properly.  I'm still not sure why this is the case, but I guess it's a good workaround for now.
0
Georgi Tunev
Telerik team
answered on 11 Aug 2008, 01:57 PM
Hello Michelle,

I tried to reproduce the problem with the information that you sent me but everything is working as expected. The problem seems to be CSS related, but at this point I cannot tell what might cause it.
Can you please open a support ticket and send me a small sample project where this behavior can be observed? Just make sure that the project can be run locally and attach it to the support thread - I will check it right away.


Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michelle
Top achievements
Rank 1
answered on 11 Aug 2008, 09:38 PM
I submitted a support ticket.

Michelle
0
Georgi Tunev
Telerik team
answered on 12 Aug 2008, 08:11 AM
Thank you, Michelle.

We will check it and get back to you as soon as possible.



Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Georgi Tunev
Telerik team
answered on 12 Aug 2008, 11:37 AM
Hello Michelle,

I just answered your support ticket - for convenience I am pasting my reply below:

Thank you for the project - I noticed that in your popup you are using RadFormDecorator which was a new information for me.
The problem comes from an IE bug which produces the behavior that you are experiencing when RadFormDecorator is used. The good news is that we managed to workaround the problem from our side and the fix will be included in the Service Pack that will appear at the end of the month.

You can fix the problem with the current version as well by adding the following script to your popup:

      <telerik:RadScriptBlock ID="RadScriptBlockPopupScript" runat="server"
 
            <script type="text/javascript"
//TELERIK MODIFIED   
            function pageLoad() 
            {  
                if (!$telerik.isIE) return ;  
                var inputs = document.getElementsByTagName("INPUT");  
                for (var i=0; i < inputs.length; i++)  
                {  
                    var input = inputs[i];  
                    //Force the IE browser to rerender input  
                    input.style.zoom = "1" ;  
                }  
            } 
             
//END TELERIK MODIFIED       
 



Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michelle
Top achievements
Rank 1
answered on 12 Aug 2008, 08:09 PM
The solution worked perfectly.  Thanks!
Tags
Window
Asked by
Michelle
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Michelle
Top achievements
Rank 1
Share this question
or