does any one know If there are any best-practices for editing/adding data in UI table while its data is filtered?
Example 1:
Suppose we have a table with two options: add new record and edit selected one. Moreover, the table has an option to filter data over column A.
Now, if the table is filtered by filtering column A with value '1' and I want to add a new record with value in column A that matches filter requirements, what should happen:
- The table should refresh and display filtered records with selected newly added record.
- The table should reset filter and show all records witch new one selected.
- The table should do nothing and display filtered records as they were. Newly added record will be displayed when the filtere resets.
For me intuitively the best solution is number 1. But then how to solve the problem in example number 2:
Example 2:
If the table is filtered by filtering column A with value '1' and I want to add a new record that in column A has value '2' what should happen:
- The table should display filtered records with selected newly added record despite it does not matche the filter.
- The table should reset the filter, and all records should be displayed with new one selected.
- The table should do nothing and display filtered records as they were.
The same story is when we have filtered records, and in selected record we want to edit value upon which the filtering took place. Does the edited record should than disapear or filtre should be reset?
Or maybe the best way is to disable add/edit operations while filter is on?
Aucun commentaire:
Enregistrer un commentaire