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

Move Group of Items

1 Answer 67 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Zeeshan
Top achievements
Rank 1
Zeeshan asked on 22 May 2009, 05:27 AM
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.  

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 25 May 2009, 01:36 PM
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.
Tags
Rotator
Asked by
Zeeshan
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or