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

i want 2 photo go out ...

2 Answers 38 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
PureRamu
Top achievements
Rank 1
PureRamu asked on 13 Mar 2009, 08:52 AM
see
http://demos.telerik.com/aspnet-ajax/rotator/examples/default/defaultcs.aspx

and  set  Direction="Up"

1)in the demo, it pulls  one photo out
but i want 2 or(any number) to go out 
what to be done for this?


2) Suppose  my photos are of different height
    what can i  do , to pull out exactly  one (if i got solution to first question i will use 2 here)
    photo out?

cheersku!

2 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 16 Mar 2009, 04:40 PM
Hi PureRamu,

In reference to your questions :

  • In AutomaticAdvance the RadRotator control is designed to show only one item per frame. If you would like to show several items at the same time you need to use one of the other Rotator's types ( SlideShow for example). 
    Other possible solution is to order the items in the datasource ( XML for example) and then use them in the item template as follow :
    <telerik:RadRotator ID="rrNews" runat="server" ScrollDirection="Up" 
        ScrollDuration="500" DataSourceID="newsDS" Width="100px" ItemWidth="100" Height="220" 
        ItemHeight="220" FrameDuration="1000"
        <ItemTemplate> 
            <asp:Image ID="Image1" runat="server" ImageUrl='<%# XPath("ImageURL1") %>' AlternateText="IMAGE_1" /> 
            <asp:Image ID="Image2" runat="server" ImageUrl='<%# XPath("ImageURL2") %>' AlternateText="IMAGE_2" /> 
        </ItemTemplate> 
    </telerik:RadRotator> 

    For your convenience I attached a simple demo to the thread.
  • The RadRotator control is designed to show items with same size. If you use content with different size, the control should not be able to "understand" where an item ends and where the next one starts.


Greetings,
Fiko
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
PureRamu
Top achievements
Rank 1
answered on 17 Mar 2009, 11:58 AM
when  sql data source  is used it  is a bit difficult :(

<ItemTemplate >
      <asp:Image ID="ImageBrand" runat="server" ImageUrl='<%# GetImageURL(Eval("ManufactureID")) %>'    />
</ItemTemplate>

:(


Tags
Rotator
Asked by
PureRamu
Top achievements
Rank 1
Answers by
Fiko
Telerik team
PureRamu
Top achievements
Rank 1
Share this question
or