Questions tagged [editmode]
103 questions
3
votes
0 answers
SwiftUI: Edit Mode Controls Disappear on Moving List Item
Why do the edit mode controls (delete button, drag handle) disappear after moving a list item?
It happens for me in iOS 15.5 and iOS 15.6 both in the simulator and on a physical device. In iOS 16.0 beta 3 when tapping Edit the controls show and then…

John
- 964
- 8
- 21
3
votes
4 answers
Conditional onTapGesture in SwiftUI
I have a navigation link and I need a different behavior when its label (MyView) is tapped depending on the edit mode (or any other condition):
If we are not in edit mode, I want to trigger the navigation link and show the DetailView with the…

Mischa
- 15,816
- 8
- 59
- 117
3
votes
0 answers
How to get rid of SwifTUI List weird animation and spacing triggered by EditMode?
If you create a new project on Xcode 12.5 and use a SwiftUI List combined to a foreach and .onmove, you will notice 2 annoying things:
1/ Even though ondelete is unset, and even though you explicitly specify .deleteDisabled(true), a space appears on…

ydstmw
- 61
- 1
- 4
3
votes
3 answers
Deletion control button on UITableview edit mode is not working
I have implemented UITableview edit mode when a button is clicked but every time it goes to edit mode and I click on the deletion button, nothing happens. I have a view controller with a UITableview on it. I have set my delegate and tableview source…

Raul Lopez
- 751
- 5
- 7
3
votes
2 answers
WPF DataGrid Cell does not leave editing mode
I am facing a strange problem with the WPF DataGrid. If you click the first cell, enter a value and then tab to the next cell, the first cell does not exit editing mode. I have reproduced the problem using a simplified version of the templates…

bhanu
- 33
- 1
- 4
3
votes
3 answers
WPF dataGgridCell Edit Mode
I have requirement to keep datagridcell always in edit mode. I dont find any option to make datagrid cell edit mode so I took TextBox under datagrid cell using control template.
I am able to write in text box but datagrid cell content never get…

Dee
- 61
- 2
- 4
2
votes
0 answers
c# datagridview set CurrentCell to Editmode
i am working on a scoring program for Darts. I use a Datagridview to enter the scores.
After pressing enter key the program will check if finished or not.
If not, the program adds another row for scoring, and should set the next Cell to CurrentCell…

LemmyDartsfan
- 21
- 1
2
votes
1 answer
Inserted record without option icon in a list can be selected in edit mode
I have a list to show some records. A weird issue will happen as follow steps:
--tap "insert" button for some times(eg. 3 times)
--swipe a record from right to left to delete it
--tap "edit" button to switch to edit mode
--tap "insert" button to…

test1229
- 125
- 9
2
votes
1 answer
How to check EditButton/EditMode state in SwiftUI
I have the following test codes. But when Edit button tapped Text doesn't change. I could not find anything about that. How to check/control editButton/editMode state changes?
struct TestView: View {
@State private var list = [1,2,3,4,5]
…

Kenan Nur
- 383
- 6
- 17
2
votes
1 answer
PrimeVue editingRows
I was hoping someone could help me with PrimeVue DataTable editing mode. On the docs for the DataTable it is stated that
Row Editing is defined by setting cellEdit as "row", defining editingRows with the v-model directive to hold the reference to…

patrick_a06
- 65
- 7
2
votes
0 answers
Relocating checkmarks in TableView multiple selection during Edit Mode
Below code provides a blue tick-mark at the left side of myCell when it is selected:
myTable.allowsMultipleSelectionDuringEditing = true
myTable.setEditing(true, animated: false)
Is there any way I can change its frame? I want it to appear at the…

ABM
- 565
- 7
- 18
2
votes
0 answers
How to keep auto-sized table cells format consistent after edition/deletion of rows using UIKit?
I have a simple table view with a unique label for the cell prototype. I have been following the recommendations in order to have proper auto-sizing cells:
setting auto-layout constraints for the label regarding its leading, trailing, top and…

Benoît L.
- 51
- 6
2
votes
1 answer
Xcode 5: How do I segue from a table view if the table view is edit-mode?
I have a simple table view that can segue to an update-view-contoller to edit that row when the user taps on a row. Issue: I would like to segue to the update-view-contoller when the table view is in "edit-mode", otherwise nothing should happen. …

user3424472
- 55
- 1
- 8
2
votes
1 answer
Reload UITableView in edit mode
I have a dictionary that holds every item in a list. I then have a plist that holds user information for each item in the list, including if the item has been collected or not. Then I load a UITableView with information based on the plist against…

robbiecutting
- 241
- 5
- 17
2
votes
3 answers
How do I prevent a DataGridTemplateColumn from going into edit-mode based on some condition?
I have a DataGridTemplateColumn that is editable. I only want the user to be able to edit the content of a cell in this column if the business object satisfies some criterion. Suppose my business object implements INotifyPropertyChanged and has…

user2023861
- 8,030
- 9
- 57
- 86