Resx file for LightBox

3 posts, 0 answers
  1. Darek
    Darek avatar
    2 posts
    Member since:
    Oct 2014

    Posted 24 Oct 2014 Link to this post

    Is there a resx file for the control LightBox? I would like to translate the label "Image 1 of 5" in the control ImageGallery (mode LightBox).

    Darek
  2. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 29 Oct 2014 Link to this post

    Hi Darek,

    I am afraid there isn't a resx file for RadLightBox. Nevertheless you can use the following approach to change the pager text.
    function pageLoad() {
        var lightBoxElement = $find("<%= RadImageGallery1.ClientID %>").get_lightBox();
        lightBoxElement.add_showed(OnShowed);
    }
     
    function OnShowed(sender) {
        sender.get_element().getElementsByClassName('rltbPager')[0].innerHTML =
            sender.get_element().getElementsByClassName('rltbPager')[0].innerHTML.replace("Image", "Изображение").replace("of", "от");
    }

    Also I logged this request in our Ideas&Feedback portal so you can vote for it.

    Regards,
    Kostadin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Darek
    Darek avatar
    2 posts
    Member since:
    Oct 2014

    Posted 29 Oct 2014 in reply to Kostadin Link to this post

    Thanks, works great.

    Darek
Back to Top