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

RadFormDecorator in RadMultiPage

5 Answers 150 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Cedric
Top achievements
Rank 2
Cedric asked on 17 Apr 2008, 03:14 PM
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

5 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 18 Apr 2008, 11:30 AM
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
0
Legalia
Top achievements
Rank 1
answered on 02 Jan 2009, 10:31 AM
Hi...
did u get the answer ?

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


0
Tervel
Telerik team
answered on 05 Jan 2009, 08:08 AM
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.
0
Legalia
Top achievements
Rank 1
answered on 12 Jan 2009, 05:57 AM
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 ?
0
Georgi Tunev
Telerik team
answered on 12 Jan 2009, 03:44 PM
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.
Tags
FormDecorator
Asked by
Cedric
Top achievements
Rank 2
Answers by
Martin
Telerik team
Legalia
Top achievements
Rank 1
Tervel
Telerik team
Georgi Tunev
Telerik team
Share this question
or