Skip to content

Commit 0088f78

Browse files
Grids: Update focus() description (#7955) (#7970)
1 parent aa8c475 commit 0088f78

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
##### shortDescription
3+
Sets focus on the UI component.
4+
5+
---
6+
The focused {WidgetName} element depends on the following conditions:
7+
8+
<table class="dx-table">
9+
<tr>
10+
<th>Condition</th>
11+
<th>Focused element</th>
12+
</tr>
13+
<tr>
14+
<td><a href="/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#focusedRowEnabled">focusedRowEnabled</a> is set to <code>true</code>.</td>
15+
<td>Focuses the first {WidgetName} row.</td>
16+
</tr>
17+
<tr>
18+
<td><b>focusedRowEnabled</b> is set to <code>false</code>.</td>
19+
<td>Focuses the first cell in the data area.</td>
20+
</tr>
21+
<tr>
22+
<td><a href="/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/grouping/">Grouping</a> is configured.</td>
23+
<td>Focuses the first group header.</td>
24+
</tr>
25+
</table>
26+
27+
#####See Also#####
28+
#include common-link-callmethods
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
##### shortDescription
3+
Sets focus on the UI component.
4+
5+
---
6+
This method focuses a {WidgetName} element depending on the following conditions:
7+
8+
<table class="dx-table">
9+
<tr>
10+
<th>Condition</th>
11+
<th>Focused element</th>
12+
</tr>
13+
<tr>
14+
<td><a href="/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#focusedRowEnabled">focusedRowEnabled</a> is set to <code>true</code>.</td>
15+
<td>Focuses the first {WidgetName} row.</td>
16+
</tr>
17+
<tr>
18+
<td><b>focusedRowEnabled</b> is set to <code>false</code>.</td>
19+
<td>Focuses the first cell in the data area.</td>
20+
</tr>
21+
<tr>
22+
<td><a href="/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/grouping/">Grouping</a> is configured.</td>
23+
<td>Focuses the first group header.</td>
24+
</tr>
25+
</table>
26+
27+
#####See Also#####
28+
#include common-link-callmethods

0 commit comments

Comments
 (0)