RadFormDecorator in RadMultiPage

6 posts, 0 answers
  1. Cedric
    Cedric avatar
    15 posts
    Member since:
    Apr 2008

    Posted 17 Apr 2008 Link to this post

    Hello, i tried the new FormDecorator in a MultiPageView and the style is not well apply on buttons inside tabs.

    I have a page that contains this code:

     <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="WebBlue" DecoratedControls="All" /> 
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
          
        <telerik:RadTabStrip ID="tsTableBudget" runat="server" Skin="WebBlue" MultiPageID="mpBudget" 
            Width="100%">  
            <Tabs> 
                <telerik:RadTab Text="Tab1" PageViewID="Tab1" /> 
                <telerik:RadTab Text="Tab2" PageViewID="Tab2" /> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <telerik:RadMultiPage ID="mpBudget" runat="server">  
            <telerik:RadPageView ID="Tab1" runat="server" Width="100%">  
                <telerik:RadAjaxPanel ID="AjaxPanelSuivi" runat="server">  
                    <asp:Button ID="Button1" runat="server" Text="Button1 Style not well apply" /> 
                </telerik:RadAjaxPanel> 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="RadPageView1" runat="server" Width="100%">  
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" > 
                    <asp:Button ID="Button3" runat="server" Text="Button2 Style not well apply" /> 
                </telerik:RadAjaxPanel> 
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 
        <asp:Button ID="Button2" runat="server" Text="Button rendered ok" /> 

    and on Button2 the style is corect but not in Button1 or Button3.

    Did I do something wrong?

    Thanks for your help

    Cedric
  2. Martin
    Admin
    Martin avatar
    585 posts

    Posted 18 Apr 2008 Link to this post

    Hello Cedric,

    Please, open a new support ticket and send us a small running project which demonstates the issue and we will do our best to help.

    Have a great weekend!

    Regards,
    Martin Ivanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Legalia
    Legalia avatar
    26 posts
    Member since:
    Nov 2008

    Posted 02 Jan 2009 Link to this post

    Hi...
    did u get the answer ?

    I am also having the same problem with MultiPageView. button style displays properly only for fist active page.


  5. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 05 Jan 2009 Link to this post

    Hello Shahejad,

    For your convenience we paste the answer to Cedric here in the forum thread as well:

    =====================================================================
    As the inital state of the button is hidden, it does not have width and appears bad. You may use the inbuilt pageLoad function of asp.net ajax to set with to the button on page load. This will fix the things:

    <script type="text/javascript">
    function
    pageLoad()
    {
        document.getElementById(
    'SkinnedButton3').style.width = '200' + 'px'
    ;
    }
    </script>




    All the best,
    Tervel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Legalia
    Legalia avatar
    26 posts
    Member since:
    Nov 2008

    Posted 11 Jan 2009 Link to this post

    thanks for solution.
    i have used MultiPageView in many pages.
    is there any other solution such that i need to do change only at one place ?
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 Jan 2009 Link to this post

    Hello Shahejad,

    I am afraid that currently this is the only solution that we can provide.


    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017