Declined
Last Updated: 28 Dec 2021 09:41 by ADMIN
Dan Avni
Created on: 23 Dec 2021 11:00
Category: DropDownTree
Type: Feature Request
0
Add ability to hide tooltip
When the RadDropDownTree contains a lot of checked items, The tooltip of the control shows all items delimited with a semicolon. For large lists it is useless (especially if the page has RadToolTip which shows a huge tooltip on screen blocking the UI). Please add an option on the control properties to disable the control from updating it's tooltip (title attribute) when items are checked
1 comment
ADMIN
Vessy
Posted on: 28 Dec 2021 09:41

Hello Dan,

Updating the title of the DropDownTree on each checked is part of the control's accessibility features and cannot be removed. If you want to remove the titles, you can still achieve it by handling the RadDropDownTree OnClientEntryAdded and OnClientEntryRemoved events and clear the title value like follows:

            <telerik:RadDropDownTree RenderMode="Lightweight" ID="cboPermisiuneTree" runat="server" Width="100%"
                CheckBoxes="SingleCheck" TextMode="Default"
                OnClientEntryAdded="updateTooltip" OnClientEntryRemoved="updateTooltip">
            </telerik:RadDropDownTree>

            <script>
                function updateTooltip(sender, args) {
                    var checkedNodes = sender.get_entries();
                    setTimeout(function () {
                        //set the main element tooltip with a small timeout so it happens after the built-in feature sets it
                        sender.get_element().setAttribute("title", "");
                    });
                }
            </script>

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.