Localization for HSB Slider Drag Text not showing

5 posts, 0 answers
  1. Alexis
    Alexis avatar
    5 posts
    Member since:
    Jun 2014

    Posted 04 Aug 2014 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 05 Aug 2014 in reply to Alexis Link to this post

    Hi Alexis,

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

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

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alexis
    Alexis avatar
    5 posts
    Member since:
    Jun 2014

    Posted 05 Aug 2014 in reply to Princy Link to this post

    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.
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Aug 2014 in reply to Alexis Link to this post

    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.
  6. Alexis
    Alexis avatar
    5 posts
    Member since:
    Jun 2014

    Posted 06 Aug 2014 in reply to Princy Link to this post

    Thanks, that work´s great.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017