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

Localization for HSB Slider Drag Text not showing

4 Answers 9 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Alexis
Top achievements
Rank 1
Alexis asked on 04 Aug 2014, 02:35 PM
Hi there,

I have this configuration:

<telerik:RadColorPicker runat="server" ID="RadColorPicker" ShowIcon="false" 
           PaletteModes="HSB" CssClass="RadColorPicker" OnClientColorPreview="OnClientColorPreview" Localization-HexInputTitle = " "
           Localization-HSBSliderDragText= "Arrastra" >
</telerik:RadColorPicker>

But the text is always "Drag" (see attach).

Thanks,

Alexis Rosano

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 05 Aug 2014, 07:33 AM
Hi Alexis,

As a work around please try the below JavaScript to achieve your scenario.

JavaScript:
$('.rslDraghandle')[0].title = "Arrastra";

Thanks,
Princy.
0
Alexis
Top achievements
Rank 1
answered on 05 Aug 2014, 06:47 PM
The thing is that my RadColorPicker is inside a RadPanelBar, so with that javascript I get the error:

"Uncaught TypeError: Cannot set property 'title' of undefined"

How can I resolve this?

Thanks.
0
Princy
Top achievements
Rank 1
answered on 06 Aug 2014, 09:17 AM
Hi Alexis,

Please try the below sample code snippet which works fine at my end.

ASPX:
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="500px">
    <Items>
        <telerik:RadPanelItem Text="ColorPicker" Width="100%">
            <ContentTemplate>
                <telerik:RadColorPicker runat="server" ID="RadColorPicker" ShowIcon="false" PaletteModes="HSB">
                </telerik:RadColorPicker>
            </ContentTemplate>
        </telerik:RadPanelItem>
    </Items>
</telerik:RadPanelBar>

JavaScript:
function pageLoad(sender, e) {
    var colorPicker = $find("<%=RadColorPicker.ClientID%>");
    colorPicker._millionColorsSlider._dragText = "Arrastra";
}

Thanks,
Princy.
0
Alexis
Top achievements
Rank 1
answered on 06 Aug 2014, 01:24 PM
Thanks, that work´s great.
Tags
ColorPicker
Asked by
Alexis
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Alexis
Top achievements
Rank 1
Share this question
or