Skip to content

Commit 856fb34

Browse files
committed
Add RadToolBar HowTo and Changes/Backward Compatibility articles, remove outdated article
1 parent 7297f66 commit 856fb34

File tree

3 files changed

+69
-57
lines changed

3 files changed

+69
-57
lines changed

controls/toolbar/changes-and-backward-compatibility.md

Lines changed: 0 additions & 57 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: RadToolBarButton Id and Custom Attributes (Q1 2016 SP1)
3+
page_title: RadToolBarButton Id and Custom Attributes (Q1 2016 SP1) | RadToolBar for ASP.NET AJAX Documentation
4+
description: RadToolBarButton Id and Custom Attributes (Q1 2016 SP1)
5+
slug: toolbar/changes-and-backwards-compatibility/radtoolbarbutton-id-and-custom-attributes-q1-2016-sp1
6+
tags: radtoolbarbutton,id,custom,attributes
7+
published: True
8+
position: 0
9+
---
10+
11+
# RadToolBarButton Id and Custom Attributes (Q1 2016 SP1)
12+
13+
## Introduced changes
14+
15+
Since Q1 2016 SP1, due to changes in the **RadToolBar**'s rendering, ID and custom attributes can no longer be set to the **RadToolBarButton**.
16+
17+
18+
# See Also
19+
20+
* [Associate RadToolTip with RadToolBarButton]({%slug toolbar/how-to/associate-radtooltip-with-radtoolbarbutton%})
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: Associate RadToolTip with RadToolBarButton
3+
page_title: Associate RadToolTip with RadToolBarButton | RadToolBar for ASP.NET AJAX Documentation
4+
description: Associate RadToolTip with RadToolBarButton
5+
slug: toolbar/how-to/associate-radtooltip-with-radtoolbarbutton
6+
tags: associate,radtooltip,with,from,radtoolbarbutton
7+
published: True
8+
position: 2
9+
---
10+
11+
# Associate RadToolTip with RadToolBarButton
12+
13+
##
14+
15+
Since 2016 Q1 SP1 custom attributes as well as **id** are not rendered for the **RadToolBarButton**, thus the **RadToolTip**'s **TargetControlID** property cannot be used to set the **RadToolBarButton** as target. This topic shows how **RadToolTip** can be associated with **RadToolBarButton** without using this property.
16+
17+
18+
````ASPNET
19+
<telerik:RadToolBar ID="RadToolBar1" runat="server" Width="300px" OnClientMouseOver="OnClientMouseOver">
20+
<Items>
21+
<telerik:RadToolBarButton Text="ToolTip added on mouseover" Value="Add" CommandName="add">
22+
</telerik:RadToolBarButton>
23+
<telerik:RadToolBarButton Text="No tooltip"></telerik:RadToolBarButton>
24+
</Items>
25+
</telerik:RadToolBar>
26+
27+
<telerik:RadToolTip ID="RadToolTip1" RelativeTo="Element" runat="server" ShowEvent="FromCode" HideEvent="LeaveTargetAndToolTip">
28+
<div>
29+
My Custom ToolTip
30+
</div>
31+
</telerik:RadToolTip>
32+
33+
<script type="text/javascript">
34+
function ShowToolTip(element) {
35+
var tooltip = $find("<%=RadToolTip1.ClientID%>");
36+
tooltip.set_targetControl(element);
37+
tooltip.show();
38+
}
39+
40+
function OnClientMouseOver(sender, args) {
41+
var button = args.get_item();
42+
var sCommandName = button.get_commandName();
43+
if (sCommandName == 'add') {
44+
ShowToolTip(button.get_element());
45+
}
46+
}
47+
</script>
48+
````
49+

0 commit comments

Comments
 (0)