Skip to content

Commit ca640bc

Browse files
erikruthdanail-vasilev
authored andcommitted
Update select-item.md
See the comment about hyphenation of server side and client side.
1 parent 16d16b3 commit ca640bc

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

controls/radiobuttonlist/functionality/select-item.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ position: 1
1010

1111
# Select Item
1212

13-
This help article showcases how to operate with the items of a **RadRadioButtonList** on the server-side/client-side.
13+
This help article showcases how to operate with the items of a **RadRadioButtonList** on the server side or client side.
1414

15-
* [Select Item Server-Side](#select-item-server-side)
15+
<Comment: In using server side or client side, you use a hyphen only if you are using the words as an adjective. So server-side scripting (server-side is an adjective), for example, or scripting that executes on the server side (not used as an adjective).>
1616

17-
* [Get Selected Item Server-Side](#get-selected-item-server-side)
17+
* [Select Item Server Side](#select-item-server-side)
1818

19-
* [Select Item Client-Side](#select-item-client-side)
19+
* [Get Selected Item Server Side](#get-selected-item-server-side)
2020

21-
* [Get Selected Item Client-Side](#get-selected-item-client-side)
21+
* [Select Item Client Side](#select-item-client-side)
2222

23-
## Select Item Server-Side
23+
* [Get Selected Item Client Side](#get-selected-item-client-side)
24+
25+
## Select Item Server Side
2426

2527
To select a particular item of a **RadRadioButtonList**, you should set the `Selected` property of the target item to `true`.
2628

@@ -101,11 +103,11 @@ End Sub
101103

102104
>warning The `SelectedIndex` property will not take effect if directly assigned with a value in the markup. The `SelectedIndex` property takes effect only when set from the code behind or integrated in a data-bound scenario in the markup (**Example 3**).
103105
104-
## Get Selected Item Server-Side
106+
## Get Selected Item Server Side
105107

106108
To get the selected item and selected index you can use the `SelectedItem` and `SelectedIndex` properties of the **RadRadioButtonList** control.
107109

108-
>caption Example 4: Get `SelectedIndex` and `SelectedItem` of **RadRadioButtonList** from the code behind.
110+
>caption Example 4: Get `SelectedIndex` and `SelectedItem` of the **RadRadioButtonList** from the code behind.
109111
110112
````ASP.NET
111113
<telerik:RadRadioButtonList ID="RadRadioButtonList1" runat="server" OnSelectedIndexChanged="RadRadioButtonList1_SelectedIndexChanged">
@@ -134,23 +136,23 @@ End Sub
134136
The selected item reference provides all its properties (e.g., `Value`, `Text`, `Selected` and `Enabled`).
135137

136138

137-
## Select Item Client-Side
139+
## Select Item Client Side
138140

139-
You can select a particular item of **RadRadioButtonList** by passing the corresponding index in the `set_selectedIndex()` method of the control.
141+
You can select a particular item of a **RadRadioButtonList** by passing the corresponding index in the `set_selectedIndex()` method of the control.
140142

141-
>caption Example 6: Select an item on the client-side.
143+
>caption Example 6: Select an item on the client side.
142144
143145
````JavaScript
144146
var radioButtonList = $find("<%=RadRadioButtonList1.ClientID%>");
145147
radioButtonList.set_selectedIndex(0);
146148
````
147149

148150

149-
## Get Selected Item Client-Side
151+
## Get Selected Item Client Side
150152

151153
You can obtain the items, selected item and selected item index of **RadRadioButtonList** through the `get_items()`, `get_selectedItem()`, and `get_selectedIndex()` methods.
152154

153-
>caption Example 7: Reference items, selected item and selected index of **RadRadioButtonList** through its client-side API.
155+
>caption Example 7: Reference items, selected item and selected index of the **RadRadioButtonList** through its client-side API.
154156
155157
````JavaScript
156158
var radioButtonList = $find("<%=RadRadioButtonList1.ClientID%>");
@@ -164,4 +166,4 @@ var selectedIndex = radioButtonList.get_selectedIndex();
164166

165167
* [Server-Side API]({%slug radiobuttonlist/server-side-programming/properties-and-events%})
166168

167-
* [Client-Side API]({%slug radiobuttonlist/client-side-programming/overview%})
169+
* [Client-Side API]({%slug radiobuttonlist/client-side-programming/overview%})

0 commit comments

Comments
 (0)