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

disabled font styling

1 Answer 61 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 26 Feb 2010, 07:07 PM
Hi,

I am trying to use the RadSlider to display a percentage within a RadGrid.  I do not want the user to be able to slide the draghandle as the control is for informational purposes only.  When I set enabled = false on the RadSlider, the font no longer presents well (this also happens on the examples on your site).  How do I go about keeping the enabled font when disabling the control?

If you can suggest a better control, please let me know.

Thanks,

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 01 Mar 2010, 12:57 PM
Hello Tom,
You can either remove the disabled CSS class from the slider element:
<telerik:RadSlider ID="RadSlider1" runat="server" ItemType="None" Enabled="false" OnClientLoad="OnClientLoad">
</telerik:RadSlider>
 
<script type="text/javascript">
function OnClientLoad(sender, args)
{
    var elementWidthDisabledClass = $telerik.getChildByClassName(sender.get_element(), "rslDisabled", "div");
    Sys.UI.DomElement.removeCssClass(elementWidthDisabledClass, "rslDisabled");
}
</script>

, or you can modify this disabled CSS class ("rslDisabled") so that the disabled slider looks as you expect it to.

All the best,
Tsvetie
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.
Tags
Slider
Asked by
Tom
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or