Try Now
More in this section

Forums / Developing with Sitefinity / Resize Telerik RadRotator

Resize Telerik RadRotator

2 posts, 0 answered
  1. Prateek
    Prateek avatar
    12 posts
    11 Sep 2012
    09 May 2013
    Link to this post
    I have used the RadRotator in my Sitefinity website. It displays news items from the backend. I have set an initial width when created the RadRotator. But it does not work well on all screen sizes. I need to resize the RadRotator depending upon the screen/browser size.
    Please help me with it.
  2. Pavel Benov
    Pavel Benov avatar
    341 posts
    14 Mar 2016
    14 May 2013
    Link to this post

    You can do this by getting the screen resolution with javascript and passing the height and width to hidden input controls on the page. Then getting the values of those controls from code-behind and checking them, so you can apply the appropriate height and width. Check out this thread for suggestions.

    Another suitable solution would be to directly get the screen size on the server-side. You can take a look at the following suggestion.

    Pavel Benov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered