ImageButtons Not Visible

9 posts, 0 answers
  1. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 07 Aug 2008 Link to this post

    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?
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 08 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 08 Aug 2008 Link to this post

    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 

  5. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 08 Aug 2008 Link to this post

    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.
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 Aug 2008 Link to this post

    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.
  7. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 11 Aug 2008 Link to this post

    I submitted a support ticket.

    Michelle
  8. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 Aug 2008 Link to this post

    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.
  9. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 Aug 2008 Link to this post

    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.
  10. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 12 Aug 2008 Link to this post

    The solution worked perfectly.  Thanks!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017