InitialItemIndex

6 posts, 0 answers
  1. nono
    nono avatar
    10 posts
    Member since:
    Oct 2007

    Posted 07 Sep 2010 Link to this post

    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
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 10 Sep 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. nono
    nono avatar
    10 posts
    Member since:
    Oct 2007

    Posted 14 Sep 2010 Link to this post

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

    Posted 17 Sep 2010 Link to this post

    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
  6. Cameron
    Cameron avatar
    8 posts
    Member since:
    Jul 2009

    Posted 17 Sep 2010 Link to this post

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

    Posted 22 Sep 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017