Dynamic ScrollDirection="Right,Left" ?

8 posts, 0 answers
  1. Julian
    Julian avatar
    1 posts
    Member since:
    Apr 2009

    Posted 11 Mar 2010 Link to this post

    I'd like to have the rotator move both left and right  as in the example 

    http://demos.telerik.com/aspnet-ajax/rotator/examples/gallery/defaultcs.aspx

    the problem is I can do it in the aspx file
    <telerik:RadRotator ID="thumbRotator" runat="server"   
             RotatorType="ButtonsOver" Width="572" 
             Height="118px" ItemHeight="118" ItemWidth="145" FrameDuration="1"   
             ScrollDirection="Left,Right" OnItemClick="ShowImage">  
     

    but in the aspx.cs file I seem to only be able to set 1 value

            RadRotator thumbRotator = new RadRotator();  
     
            thumbRotator.RotatorType = RotatorType.ButtonsOver;  
            thumbRotator.Width = Unit.Pixel(572);  
            thumbRotator.Height=Unit.Pixel(118);  
            thumbRotator.ItemHeight=Unit.Pixel(118);  
            thumbRotator.ItemWidth=Unit.Pixel(145);  
            thumbRotator.FrameDuration=1;  
            thumbRotator.ScrollDirection = (RotatorScrollDirection.Left) ; 

    Any ideas?

    Thanks

    Bob

  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 15 Mar 2010 Link to this post

    Hi Bob,

    You can specify more than one scroll direction on the server by using a | separator. Here is an example:

    thumbRotator.ScrollDirection = RotatorScrollDirection.Left | RotatorScrollDirection.Right;

    All the best,
    Lini
    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. Qurat
    Qurat avatar
    21 posts
    Member since:
    Jan 2013

    Posted 08 Apr 2013 Link to this post

    hi when i write this line: thumbrotator.RotatorType = RotatorType.ButtonsOver;

    it gives me this Error
    Error    2    'Telerik.WebControls.RadRotator' does not contain a definition for 'RotatorType' and no extension method 'RotatorType' accepting a first argument of type 'Telerik.WebControls.RadRotator' could be found (are you missing a using directive or an assembly reference?)   

    regards
    @nnu
    Punjab lok sujag
  5. Qurat
    Qurat avatar
    21 posts
    Member since:
    Jan 2013

    Posted 09 Apr 2013 Link to this post

    if i add telerik.web.ul
    the errror goes but  then this error come  on  thumbrotator.FrameTemplate = new RadRotatorTemplate();

    Error    1    'Telerik.Web.UI.RadRotator' does not contain a definition for 'FrameTemplate' and no extension method 'FrameTemplate' accepting a first argument of type 'Telerik.Web.UI.RadRotator' could be found (are you missing a using directive or an assembly reference?)    C:\Users\hp\Downloads\061183_ProgrammaticTemplateCS\ProgrammaticTemplateCS\rotator.aspx.cs    26    22    C:\...\ProgrammaticTemplateCS\

  6. Qurat
    Qurat avatar
    21 posts
    Member since:
    Jan 2013

    Posted 09 Apr 2013 Link to this post

    hi bob can you post your project here please
  7. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 10 Apr 2013 Link to this post

    Hello Qurat,

    FrameTemplate is a property of the RadRotator control from the classic ASP.NET controls suite. You need to use the property ItemTemplate in order to set the item template of the ASP.NET AJAX RadRotator.

    Regards,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  8. Qurat
    Qurat avatar
    21 posts
    Member since:
    Jan 2013

    Posted 10 Apr 2013 Link to this post

    hi slav,
     i am using itemtemplate now..my project was working before with frametemplate but now after adding itemtemplate  its not working.
    kindly send me a sample project using itemtemplate n have a look at my code.it is attached

    regards
    @annu

  9. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 12 Apr 2013 Link to this post

    Hi Qurat,

    You can find attached a sample page that shows how to set the ItemTemplate property of RadRotator. Please ensure that you are using the latest version of RadControls for ASP.NET AJAX when running the sample on your end.

    All the best,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017