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

Alternate text for buttons

5 Answers 106 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
HSLaw
Top achievements
Rank 1
HSLaw asked on 12 Oct 2009, 03:25 AM

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

5 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 15 Oct 2009, 07:30 AM
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.
0
HSLaw
Top achievements
Rank 1
answered on 15 Oct 2009, 09:04 AM
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.
0
Veselin Vasilev
Telerik team
answered on 16 Oct 2009, 12:44 PM
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.
0
Zeeshan Ahmed Khan
Top achievements
Rank 1
answered on 11 Jan 2010, 05:02 AM
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.
0
Yana
Telerik team
answered on 11 Jan 2010, 02:37 PM
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.
Tags
ListBox
Asked by
HSLaw
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
HSLaw
Top achievements
Rank 1
Zeeshan Ahmed Khan
Top achievements
Rank 1
Yana
Telerik team
Share this question
or