This is a migrated thread and some comments may be shown as answers.

RadSlider size settings not working

16 Answers 136 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 13 Feb 2009, 05:58 PM
Hi,

Below is a snippet of aspx code that should create a RadSlider with a width of 600px. However the rendered slider seems to be rendered with a default width of about 200px.

<

telerik:RadSlider runat="server" ID="VideoSlider" Width="600" Orientation="Horizontal" Skin="WebBlue" TrackMouseWheel="true" Value="0"/>

Is there any reason this would not be working? I can change this width via CSS but would prefer if this could be rectified?

Thanks,
Sunil

 

16 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 16 Feb 2009, 11:26 AM
Hello Sunil,
As you have not specified the version of the suite that you use, I tested your code with the latest version - 2008.3.1314 (Q3 2008 SP2), but I was not able to reproduce the problem. Could you please make sure that you are using the latest version and in case the problem persists, prepare and send us a simple running project, with which we can reproduce the problem locally?

Best wishes,
Tsvetie
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sunil
Top achievements
Rank 1
answered on 17 Feb 2009, 10:33 AM
Hello Tsvetie,

I can confirm that the latest version of Telerik Rad Controls fixes this problem for me. Thanks for your feedback.
You may like to know that the version that has this problem is: 2008.1.624.20.

Thanks,
Sunil
0
Accepted
Tsvetie
Telerik team
answered on 17 Feb 2009, 12:03 PM
Hello Sunil,
Yes, in the version that you used, the RadSlider did not support the Width property. You had to use the Length property, which set the Width, when Orientation=Horizontal, and the Height, when Orientation=Vertical.

Sincerely yours,
Tsvetie
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 18 May 2011, 11:12 PM
Actually, it seems this problem is back again. When adding a new RadSlider to a page, the Length property (which is not even visible in the properties) is set to 200 it seems, which makes the RadSlider ignore the width property altogheter. When removing the length property, it works again. A bug?
0
Niko
Telerik team
answered on 19 May 2011, 11:15 AM
Hello Patrik,

Assuming that you are using the latest version of the controls, which is Q1.2011, I couldn't reproduce the issue you are reporting. Is it possible that external CSS resources are causing the slider to disrespect the value of the Width property? Please, provide the code snippet that you have been using to cause this problem to occur.

All the best,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 19 May 2011, 12:54 PM
Is the length property even supported anymore (as it is not available in the properties window)? Just removing the length property from markup (which is default set to 200px) will make it work so it is an easy fix, but still, could be a bug
0
Niko
Telerik team
answered on 20 May 2011, 09:24 AM
Hi Patrik,

The Length property is marked as Obsolete and its use is not recommended. As per Tsvetie's advice, the use of Width is the recommended way of changing the width of the RadSlider control.


Greetings,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 20 May 2011, 09:39 AM
So, the million dollar question, why does you designer add the Length property to the markup then (we are using latest version of Telerik)? We have an empty test page, dropped a RadSlider on it, and experimented with it a bit (all using the designer or properties window in Visual Studio 2010) and after a while when we looked in the markup (after the problems with width mentioned above) we could  find both a Length=200 and a DBValue property which also seems obsolete (at least that didn't show up in properties either).

We have seen this problem before sometimes as well, that unknown properties was added to the markup, like "Owner" for, if I remember correctly, the RadTabStrip och RadMultiPage.

I must say this has us somewhat worried about the quality of the generated markup, and what problems we might get because of it.

0
Niko
Telerik team
answered on 20 May 2011, 11:48 AM
Hello Patrik,

After extended testing I wasn't able to make the Length property appear in the declaration of the RadSlider. Could you, please, provide the exact steps to reproduce this issue?

As far as the DbValue property is concerned, it is a new property for the control and its use case is mainly with data-bound scenarios, where this property guarantees a database-friendly way of setting the Value, i.e. having null as a value does not raise an exception. Being a substitute  for the Value property in specific cases makes this property unnecessary within the Properties pane. More on the subject, please, refer to http://demos.telerik.com/aspnet-ajax/slider/examples/dbvalue/defaultcs.aspx.

Hope this helps.

Kind regards,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 20 May 2011, 12:16 PM
As we did a lot of different testing I probably wont be able to backtrack the steps to reproduced, but knowing that we didn't manually type it into the markup code, and that the page and the RadSlider were both created from scratch, I think it is safe to assume that it was the RadSlider designer that made it appear in the markup. We only noticed it when we investigated why the width property didn't work.
0
Niko
Telerik team
answered on 20 May 2011, 01:07 PM
Hi Patrik,

We will have this strange behavior in mind and, if we come across it once again, we will let you know what may be causing it. However until then, without concise reproduction steps, we can only assume what may be happening. Therefore, any additional information on this is very much welcome.

We really appreciate your feedback and persistance in this matter.

Kind regards,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 20 May 2011, 01:08 PM
Being a software developmer myself I can fully understand this. Will let you know if we are able to reproduce.
0
Chuck
Top achievements
Rank 1
answered on 12 Nov 2012, 04:49 PM
Just as an FYI, I had the same issue in VS 2010 v.2012.3.1016.35.

Dragged a slider control onto the designer and had both the Length ="200" and DbValue="0" added automatically to the markup.
0
Slav
Telerik team
answered on 14 Nov 2012, 03:09 PM
Hello Charles,

I tried to reproduce the problem you described, but without success. You can try removing the RadControls from the Visual Studio toolbox and adding them again as described here using the latest version of the Telerik.Web.UI assembly.

If the problem persists, please open a regular support ticket and send a simple, runnable project that isolates the issue so that I can inspect it locally and provide a more to the point answer.

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.
0
Chuck
Top achievements
Rank 1
answered on 14 Nov 2012, 03:38 PM
That is fine, I don't care - it's not affecting me.  I was just letting you know that it is really happening, even if you can't replicate it.  I don't have the time to track it down, I just stumbled upon this thread while trying to figure something else out.  No response needed.  Have a great day! :)
0
Slav
Telerik team
answered on 16 Nov 2012, 09:04 AM
Hello Chuck,

Thank you very much for bringing this to out attention! I will notify you in this thread should we succeed in isolating this issue and fixing it.

Greetings,
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.
Tags
Slider
Asked by
Sunil
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Sunil
Top achievements
Rank 1
improwise
Top achievements
Rank 1
Iron
Iron
Niko
Telerik team
Chuck
Top achievements
Rank 1
Slav
Telerik team
Share this question
or