Alternate text for buttons

6 posts, 0 answers
  1. HSLaw
    HSLaw avatar
    153 posts
    Member since:
    Jan 2006

    Posted 11 Oct 2009 Link to this post


    Hi,
    In this example below, how can we change the alternate text or tooltip for the buttons between the listboxes?
    I wanted to add the tooltip as move left, move right, etc.

    URL: http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/draganddrop/defaultcs.aspx

    Thanks
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 15 Oct 2009 Link to this post

    Hi Paladin,

    Please add the following javascript to your page:

    <script type="text/javascript">
        function pageLoad() {
            window.$ = $telerik.$;
            $(".rlbButton").each(function(b) {
                var className = this.className;
                if (className.indexOf("TransferFrom") > -1) {
                    this.title = "Move right";
                    return;
                }
                if (className.indexOf("TransferTo") > -1) {
                    this.title = "Move left";
                    return;
                }
                if (className.indexOf("TransferAllFrom") > -1) {
                    this.title = "Move all right";
                    return;
                }
                if (className.indexOf("TransferAllTo") > -1) {
                    this.title = "Move all left";
                    return;
                }
            });
        }
    </script>


    All the best,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. HSLaw
    HSLaw avatar
    153 posts
    Member since:
    Jan 2006

    Posted 15 Oct 2009 Link to this post

    Thanks.

    Is it possible to arrange the buttons? Our user will use the move left and move right more and we would like to arrange the move left move right button as the first buttons.
  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 16 Oct 2009 Link to this post

    Hello Paladin,

    Actually the move right and move left buttons are on the top. They cannot be rearranged.

    Greetings,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Zeeshan Ahmed Khan
    Zeeshan Ahmed Khan avatar
    11 posts
    Member since:
    Jul 2009

    Posted 10 Jan 2010 Link to this post

    Hi All;

    I wanted to whether is it possible to hide to all listbox buttons except TransferFrom Button (Move Right Button) i do want to show TransferTo Button(move Left/Move back in List Button).

    Please see attachment for more clarification;

    Regards;
    Zeeshan Ahmed Khan
    RNA Pharmacy System.
  7. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Jan 2010 Link to this post

    Hello Paladin,

    To remove TransferAll buttons please set ButtonSettings-ShowTransferAll property of the listbox to false. For the TransferTo button, add the following css styles to your page:

    .RadListBox .rlbTransferTo,
    .RadListBox .rlbTransferToDisabled {
        display: none !important;
    }

    Kind regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017