Move Group of Items

2 posts, 0 answers
  1. Zeeshan
    Zeeshan avatar
    2 posts
    Member since:
    May 2009

    Posted 22 May 2009 Link to this post

    Hi

    i want to move three items at a time using RotatorType="FromCode". I am able to rotate only one item at a time. but i need it for three items. please if possible give this functionality in control as a property like "NumberOFItemsToRotate". so that User can put the Number of items he/she wants to rotate. but  for now please tell me how can i achieve this i m stuck with it.  
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 25 May 2009 Link to this post

    Hi Zeeshan,

    Thank you for the suggestion - we will consider implementing that functionality in the RadRotator control. For the time being, you can achieve the desired result by grouping the items in the DataSource. For example if you have a XMLDatasource, you can group the items as follows :
    <?xml version="1.0" encoding="utf-8" ?> 
    <quotes> 
      <quoterProperties> 
        <quote2>  
          Simple Text 1 
        </quote2> 
        <quote1> 
          Simple Text 2 
        </quote1> 
      </quoterProperties> 
    ................... 

    Then you can declare the following template and you will get two items to be rotated at the same time :

    <ItemTemplate> 
        <div style="width: 350px; height: 20px; font-weight: bold; background-color: #fff;"
            <%# XPath("quote1")%> 
            <%# XPath("quote2")%> 
        </div> 
    </ItemTemplate> 

    i hope this helps.

    Kind regards,
    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
Back to Top