Focus First Item by default in Rad Carousel

9 posts, 0 answers
  1. Mohamed
    Mohamed avatar
    10 posts
    Member since:
    Mar 2012

    Posted 19 Mar 2012 Link to this post

    I have added data item to rad carousel and I just wanted get the zeroth position to be focused by below format

    Curent                 --    5    4    3    2    1                     

    I want like this         --  3    2    1

    Thanks in advance.

    Arafath
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 19 Mar 2012 Link to this post

    Hi Arafath,

    You could use the BringDataItemIntoView method of the RadCarousel once it has been loaded.

    radCarousel.BringDataItemIntoView(radCarousel.Items[4]);

    That way the fifth item will be shown as the selected item of the carousel. 

    Regards,
    Didie
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mohamed
    Mohamed avatar
    10 posts
    Member since:
    Mar 2012

    Posted 20 Mar 2012 Link to this post

    Hi ,

    I tried this one but its not working for me still the same appearance continues ....

    can you guide me if i need to add any property in xaml code or need to give "radCarousel.BringDataItemIntoView(radCarousel.Items[4]) " anywhere exactly in code behind file...

    Thanks
    Arafath


  5. Mohamed
    Mohamed avatar
    10 posts
    Member since:
    Mar 2012

    Posted 20 Mar 2012 Link to this post

    Hi,

    can you give me sample code for the rad carousel first  item focusing  to understand the thing properly.

    That would be fine for me to understand the things in very clear format.
  6. Mohamed
    Mohamed avatar
    10 posts
    Member since:
    Mar 2012

    Posted 21 Mar 2012 Link to this post

    Hi Maya,

    Could you pls post the sample app for rad carousel focus first item by default .....

    I tried the code snippet "radCarousel.BringDataItemIntoView(radCarousel.Items[4]); "

    but its not working for me sooo pls post me some sample app to understand it ...


    Regards,
    Arafath
  7. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 21 Mar 2012 Link to this post

    Hi Arafath,

     Have you checked this forum thread for an example?

    All the best,
    Didie
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  8. Mohamed
    Mohamed avatar
    10 posts
    Member since:
    Mar 2012

    Posted 22 Mar 2012 Link to this post

    Hi,
    Thanks a lot and its working fine for me.....:)

    Regards,
    Arafath
  9. Mohamed
    Mohamed avatar
    10 posts
    Member since:
    Mar 2012

    Posted 23 Mar 2012 Link to this post

    Hi how can i reduce the empty white  space between the carousel item and the carousel panel ...
    please find the attached screenshot for ur reference ....

    Please answer this query as guick as possible...

    Regards,
    Arafath

  10. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 28 Mar 2012 Link to this post

    Hi Mohamed,

     

    Have you tried to decrease the Width of RadCarousel? 



    Kind regards,
    Vanya Pavlova
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top
UI for WPF is Visual Studio 2017 Ready