How to Set 100% Height and Random Styles to a RadAjaxManager Update Panel

Thread is closed for posting
2 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 23 Jul 2008 Link to this post

    Requirements

    RadControls version

    RadControls for ASP.NET AJAX 2008.1.415+
    .NET version all
    Visual Studio version

    all
    programming language

    C#, VB
    browser support

    all browsers supported by RadControls


     
    PROJECT DESCRIPTION

    The current CSS specification requires that a web page element with height set in percent must have a parent element with set height (either in percent or in pixels). This creates problems for example when a control with a set height of 100% is ajaxified. In this case the control is surrounded by an update panel with no height, which breaks the expected layout.

    The attached sample project demonstrates how to programmatically find out the ClientIDs of update panels created by RadAjaxManager, so that one can apply styles (mostly height) to these panels.

    Pages in C# and Visual Basic included.
  2. 2D95F235-B3CE-414A-BD6E-7B2E8B7CF5CD
    2D95F235-B3CE-414A-BD6E-7B2E8B7CF5CD avatar
    8486 posts
    Member since:
    Apr 2023

    Posted 20 Jan 2009 Link to this post

    Hello,

    Here is an updated version of the above example, which demonstrates how to do the same thing in a MasterPage + RadAjaxManagerProxy scenario.

    Regards,
    Dimo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.