RadRotator property width 100%

6 posts, 2 answers
  1. Gustavo
    Gustavo avatar
    26 posts
    Member since:
    Jun 2014

    Posted 01 Jul 2014 Link to this post

    my problem is that ro respects the width 100% out of the screen and scroll appears, attached the code

    greetings and thanks
  2. Answer
    Slav
    Admin
    Slav avatar
    1355 posts

    Posted 04 Jul 2014 Link to this post

    Hi Gustavo,

    The RadRotator control supports setting its Width property in percentage. Its width in this case is calculated from the width of its parent element. if the rotator is getting a higher width, most probably it comes from one of its parents that does not have a specific width. I would suggest checking for such element and setting its width either in percentage or in pixels.

    I have attached a page that includes a responsive rotator, so that you can use it as a reference. In case you are still having difficulties, please send a fully runnable sample page that isolates the problem so that I can track the cause for the bigger rotator width.

    Regards,
    Slav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Gustavo
    Gustavo avatar
    26 posts
    Member since:
    Jun 2014

    Posted 04 Jul 2014 in reply to Slav Link to this post

    thanks & regards
  5. Gustavo
    Gustavo avatar
    26 posts
    Member since:
    Jun 2014

    Posted 04 Jul 2014 in reply to Gustavo Link to this post

    your example run well but i attach my code, i need help, the difference with your example is the use the 'table' by div

    thanks
  6. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 08 Jul 2014 Link to this post

    Hi Gustavo,

    Once you can make the table provide dimensions, the rotator should be able to fit in it. The problem is that the table would, by default, stretch with its content, so the contents cannot be expected to resize to fit the table. I am attaching here a screenshot that illustrates this.

    Therefore, I advise that you either make sure the table does not stretch (I am attaching an example), or adopt a more modern design approach like the divs my colleague Slav suggested in his previous post.


    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. Gustavo
    Gustavo avatar
    26 posts
    Member since:
    Jun 2014

    Posted 09 Jul 2014 in reply to Marin Bratanov Link to this post

    Hi Marin Bratanov

    Thank you very much, the code works all perfect

    Regards
Back to Top
UI for WinForms is Visual Studio 2017 Ready