You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Combine redundant Basic and Range Selection sections
- Merge Basic Cell Selection and Range Selection into single Cell Selection section
- Rename Range Selection to Advanced Selection Event Handling for clarity
- Rename Advanced Cell Selection Configuration to Advanced Configuration Options
- Address GitHub comment feedback from Lendemor about section redundancy
- Maintain all functionality while improving documentation structure
Co-Authored-By: [email protected] <[email protected]>
Copy file name to clipboardExpand all lines: docs/enterprise/ag_grid/cell-selection.md
+27-25Lines changed: 27 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,18 @@ from pcweb.pages.docs import enterprise
11
11
12
12
AG Grid provides powerful cell selection capabilities that allow users to select individual cells or ranges of cells. This feature is essential for data manipulation, copying, and advanced interactions like fill handle operations.
13
13
14
-
## Basic Cell Selection
14
+
## Cell Selection
15
15
16
-
To enable cell selection in your AG Grid, set the `cell_selection` prop to `True`:
16
+
To enable cell selection in your AG Grid, set the `cell_selection` prop to `True`. This automatically enables both single cell selection and range selection capabilities.
Range selection is automatically enabled when you set `cell_selection=True`. This allows users to select multiple cells at once and perform operations across ranges.
68
+
For more sophisticated selection handling, you can process the selection ranges to calculate detailed information:
-**Cell Selection**: Enable with `cell_selection=True` for basic cell selection and automatic range selection
274
+
-**Cell Selection**: Enable with `cell_selection=True` for both single cell and range selection capabilities
273
275
-**Fill Handle**: Configure with `cell_selection={"handle": {"mode": "fill"}}` for drag-to-fill functionality
274
276
-**Event Handling**: Use `on_cell_selection_changed` to respond to selection changes
275
277
-**Value Changes**: Use `on_cell_value_changed` to handle individual cell edits and fill operations
276
278
-**Text Selection**: Enable `enable_cell_text_selection=True` to allow text selection within cells
277
279
278
280
## Best Practices
279
281
280
-
1.**Use cell_selection configuration**: Range selection is automatically enabled with `cell_selection=True` and provides all necessary selection capabilities for fill operations.
282
+
1.**Use cell_selection configuration**: Both single cell and range selection are automatically enabled with `cell_selection=True`, providing all necessary selection capabilities for fill operations.
281
283
282
284
2.**Handle cell value changes**: When using fill handle, implement `on_cell_value_changed` to process the data updates in your backend.
0 commit comments