Skip to content

Commit 0fb7fc6

Browse files
Merge pull request #362 from syncfusion-content/FLUT-6235-datagrid-cell-style
FLUT-6853 - [Feature] Added the UG documentation content for the completed features
2 parents dbbb08b + 9d33c12 commit 0fb7fc6

19 files changed

+87
-61
lines changed

Flutter/datagrid/editing.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ class EmployeeDataSource extends DataGridSource {
175175
{% endhighlight %}
176176
{% endtabs %}
177177

178+
![flutter datagrid editing](images/editing/datagrid_editing.gif)
179+
178180
>**NOTE**
179181
Download demo application from [GitHub](https://github.com/SyncfusionExamples/how-to-perform-editing-in-flutter-datatable-sfdatagrid).
180182

@@ -237,6 +239,8 @@ Widget build(BuildContext context) {
237239
{% endhighlight %}
238240
{% endtabs %}
239241

242+
![flutter datagrid disable the editing for specific column](images/editing/disable_editing.gif)
243+
240244
## Entering edit mode
241245

242246
By default, cell will be moved to edit mode when you double tap the cells. You can enable the editing to be performed on tapping, set the [SfDataGrid.editingGestureType](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataGrid/editingGestureType.html) property as tap.
@@ -495,6 +499,8 @@ Widget build(BuildContext context) {
495499
{% endhighlight %}
496500
{% endtabs %}
497501

502+
![flutter datagrid begin edit](images/editing/begin_editing.gif)
503+
498504
### EndEdit
499505

500506
The [SfDataGrid.endEdit](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridController/endEdit.html) method can be called to programmatically end the editing for specific cell.
@@ -696,6 +702,8 @@ class EmployeeDataSource extends DataGridSource {
696702

697703
You can override the [canSubmitCell](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridSource/canSubmitCell.html) from [DataGridSource](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridSource-class.html) class and return false based on your criteria.
698704

705+
If you return a false from the `canSubmitCell` method, the Datagrid doesn't allow the focus to the other widget which is added outside the DataGrid. The focus would be always on the `currentCell`.
706+
699707
{% tabs %}
700708
{% highlight dart %}
701709

294 KB
Loading
470 KB
Loading
273 KB
Loading
21.9 KB
Loading
Binary file not shown.
20.2 KB
Loading
18.5 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)