RadSlider size settings not working

17 posts, 1 answers
  1. Sunil
    Sunil avatar
    2 posts
    Member since:
    Aug 2008

    Posted 13 Feb 2009 Link to this post

    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

     

  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 16 Feb 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sunil
    Sunil avatar
    2 posts
    Member since:
    Aug 2008

    Posted 17 Feb 2009 Link to this post

    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
  5. Answer
    Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 17 Feb 2009 Link to this post

    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.
  6. Patrik Johansson
    Patrik Johansson avatar
    270 posts
    Member since:
    May 2010

    Posted 18 May 2011 Link to this post

    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?
  7. Niko
    Admin
    Niko avatar
    387 posts

    Posted 19 May 2011 Link to this post

    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.

  8. Patrik Johansson
    Patrik Johansson avatar
    270 posts
    Member since:
    May 2010

    Posted 19 May 2011 Link to this post

    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
  9. Niko
    Admin
    Niko avatar
    387 posts

    Posted 20 May 2011 Link to this post

    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.

  10. Patrik Johansson
    Patrik Johansson avatar
    270 posts
    Member since:
    May 2010

    Posted 20 May 2011 Link to this post

    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.

  11. Niko
    Admin
    Niko avatar
    387 posts

    Posted 20 May 2011 Link to this post

    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.

  12. Patrik Johansson
    Patrik Johansson avatar
    270 posts
    Member since:
    May 2010

    Posted 20 May 2011 Link to this post

    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.
  13. Niko
    Admin
    Niko avatar
    387 posts

    Posted 20 May 2011 Link to this post

    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.

  14. Patrik Johansson
    Patrik Johansson avatar
    270 posts
    Member since:
    May 2010

    Posted 20 May 2011 Link to this post

    Being a software developmer myself I can fully understand this. Will let you know if we are able to reproduce.
  15. Chuck
    Chuck avatar
    30 posts
    Member since:
    Sep 2010

    Posted 12 Nov 2012 Link to this post

    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.
  16. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 14 Nov 2012 Link to this post

    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.
  17. Chuck
    Chuck avatar
    30 posts
    Member since:
    Sep 2010

    Posted 14 Nov 2012 Link to this post

    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! :)
  18. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 16 Nov 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017