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

InitialItemIndex

5 Answers 84 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
nono
Top achievements
Rank 1
nono asked on 07 Sep 2010, 11:09 PM
When using InititalItemIndex = "-1", I have to have enough items in the list to completely fill the size of the rotator or it wont display at all.

For example if you have one item in the rotator and you have it 500px high by 300px wide and you are going to scroll the text "blah blah" it will not show up.

you add a couple more items to the list and make it shorter the items will then show and scroll appropiately.

You can also set it to InitialItemIndex = "0" and the records will show correctly and not scroll.

This was tested under IE 8

5 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 10 Sep 2010, 01:36 PM
Hello Nono,

Yes everything you said is correct, and it is the expected behavior of the RadRotator control. By design the RadRotator control will not perform scrolling of the items, if there are not enough items to scroll. This means that if the rotator's viewport can show 3 items at a time, then there must be more than 3 items, in order for the scrolling to take place. The InitialItemIndex property simply moves the starting position of the scrolling, it will not make the rotator rotate the items if the condition that I just described is not met.

Greetings,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
nono
Top achievements
Rank 1
answered on 14 Sep 2010, 03:57 PM
Why wouldent it just act as if index was 0 if there was not enough items to scroll. This took a long time to troubleshoot as i thought for some reason the data source was invalid because nothing ever showed up. By luck I just happened to add an extra item to the source and it began working. This was especially hard to figure out because I had 9 items in my source and the rotator was height=1000px.

This would be even more difficult to figure out if the height was dynamic.

Personally I think it acting as if index was 0 rather then not showing anything is a much better solution.
0
Fiko
Telerik team
answered on 17 Sep 2010, 12:20 PM
Hello Nono,

Thank you for the suggestions. We will consider to change the behavior of the control, but please note that we will do it only if this does not lead to some inconsistent behavior.

Sincerely yours,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Susan
Top achievements
Rank 1
answered on 17 Sep 2010, 06:39 PM
I agree completely with nono's suggestion. I spent a week troubleshooting the exact same thing. I'm using an RSS feed as the content source and was finding that sometimes the scroller would appear and sometimes not. If the feed happened to have only one article that day, the scroller was gone. When the feed had more than one, bingo.

I had the InitialItemIndex set to -1 as well to always start with a blank. I had to change it to 0 so even one article would appear. The downside to this is that the first title in the feed is displayed right away when the page loads instead of scrolling. Better than nothing appearing I guess.

Maybe this will be reconsidered.
0
Fiko
Telerik team
answered on 22 Sep 2010, 11:04 AM
Hello Michael,


Thank you for the suggestions. As I said, we will consider to change the behavior of the control, but please note that we will do it only if this does not lead to some inconsistent behavior.

Kind regards,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Rotator
Asked by
nono
Top achievements
Rank 1
Answers by
Pero
Telerik team
nono
Top achievements
Rank 1
Fiko
Telerik team
Susan
Top achievements
Rank 1
Share this question
or