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
but in the aspx.cs file I seem to only be able to set 1 value
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
7 Answers, 1 is accepted
0
Hi Bob,
You can specify more than one scroll direction on the server by using a | separator. Here is an example:
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.
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.
0
Qurat
Top achievements
Rank 1
answered on 08 Apr 2013, 08:23 AM
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
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
0
Qurat
Top achievements
Rank 1
answered on 09 Apr 2013, 10:17 AM
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\
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\
0
Qurat
Top achievements
Rank 1
answered on 09 Apr 2013, 10:25 AM
hi bob can you post your project here please
0
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
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.
0
Qurat
Top achievements
Rank 1
answered on 10 Apr 2013, 09:53 AM
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
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
0
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
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.