SelectedRegion Color

2 posts, 0 answers
  1. dennis
    dennis avatar
    39 posts
    Member since:
    Jun 2008

    Posted 29 Apr 2009 Link to this post

    How i can change the selectedregion color from CodeBehind, ForeColor property doesnt work, any help????

    im doin it now with javascript :
         $get('RadSliderSelected_' + $find('RadSlider1').get_id()).style.background = 'url("../Images/Red.gif")';
  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 01 May 2009 Link to this post

    Hello Dennis,
    The RadSlider control is a complex control, not a simple HTML element and the HTML it renders is consisted of a lot of HTML elements. That is why, in my opinion, it is not clear to which element of the RadSlider HTML the ForeColor property should be applied. That is why, it is ignored.

    In case you what to customized the look of the RadSlider, you can do one of the following:
    1. Create a custom skin. You can set the Skin property of the RadSlider in the code behind. For additional information on custom skins, please refer to our online documentation.
    2. Use the CssClass property of the RadSlider to apply changes to the look of the RadSlider in case you do not intend to create whole custom skin, but only what to change the image for the selected region element. For example:
      .BlueSliderTrack .rslSelectedregion 
          backgroundblue url('BlueSliderTrack.GIF'!important
      <telerik:RadSlider ID="RadSlider1" runat="server" Value="50"  

    I have attached a simple test page that demonstrates the second approach - how you can switch the color of the selected region from blue to red dynamically by using the CssClass property of the RadSlider.

    Sincerely yours,
    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.
Back to Top