i want 2 photo go out ...

3 posts, 0 answers
  1. PureRamu
    PureRamu avatar
    37 posts
    Member since:
    Feb 2009

    Posted 13 Mar 2009 Link to this post

    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. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 16 Mar 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. PureRamu
    PureRamu avatar
    37 posts
    Member since:
    Feb 2009

    Posted 17 Mar 2009 Link to this post

    when  sql data source  is used it  is a bit difficult :(

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

    :(


Back to Top