Anybody knows any work around?
<
cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
<cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Photos Grouped in Frames">
<HeaderTemplate>
Grouped in Frames
</HeaderTemplate>
<ContentTemplate>
<telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="ObjectDataSource2">
<ItemTemplate>
<asp:Image ID="Image1" ImageUrl='<%#"~/" + eval("imageurl") %>' runat="server" />
</ItemTemplate>
</telerik:RadRotator>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetFramePhotos" TypeName="MB.TheBeerHouse.BLL.Albums.Photo">
<SelectParameters>
<asp:ControlParameter ControlID="FrameIODTag" DefaultValue="" Name="FrameID" PropertyName="Value" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</ ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="Loose Photos">
</cc1:TabPanel>
<cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="Loose Photos">
<ContentTemplate>
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
this does not work. It will occupy the spacce on screen but will not display any picture or data at all.
9 Answers, 1 is accepted
The problem here comes from the fact that when the tab container control initially loads the rotator, it is still hidden - that is why the items are not shown. You can easily fix this by hooking to the OnClientLoad eventhandler of the rotator and executing the following script:
function OnClientLoad(rotator) |
{ |
window.setTimeout(function() |
{ |
rotator.repaint(); |
},0); |
} |
Sincerely yours,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I was just checking in and was also going to post that the rotator also did not work in the Accordion control of the ajax toolkit when I saw that you had posted a posible solution.
Thank you. but how do I "hook into the event handler" as you put it? I have no idea how to do this.
Also the only 'client' events that I see exposed are the following ones (i dont see the OnClientLoad event):
OnClientItemClicked
OnClientItemClicking
OnClientItemShowing
OnClientItemShown
OnClientMouseOut
OnClientMouseOver
Are you, by any chance, using an older version of the control? The property I am talking about is indeed OnClientLoad and if I remember correctly, it was introduced in the 2008.2.826 release. If you have an older version of the control, please upgrade and you should not experience this problem anymore.
Best wishes,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
how do I find out which version I have?
never mind ill just re download it and re install it :(
Version=2008.2.723.35
Yes, you will need to upgrade in this case. As for the version's number, you can also check it in the Properties / Version tab of the dll file itself.
Kind regards,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I have the same issue but the repaint method doesnt solve my problem
any solution for that?
my it help someone