Hi there,
it's possible to have an example of the new functionality edit grid through IGGridViewdatasourcehelper? With add cell, edit cell and delete cell?
thanks
Hi Rui,
The new Edit Mode feature in 13.2 comes down to basically one property: AllowEditing on IGGridViewDataSourceHelper:
ds.AllowEditing = true;
Once you turn that on, you now double tap any cell that supports editing, and that cell will become editable. Tap anywhere else, scroll it out of view, or close the keyboard, and edit mode will automatically end.
Editing currently supports a standard TextField for editing strings. You can create custom columns though and provide your own editors:
You can read a lot more about the feature here:
http://help.infragistics.com/iOS/2013.2/?page=IGGridView_Configuring_Grid_Data_Entry.html
I've also updated the sample with a custom DateColumn to show how to add custom editing. I use a TextField in the sample, but you can use anything you want.
Hope this helps,
-SteveZ
thanks,
Can you tell me the events when user starts insert values on the field and ended to insert? i need in some case call somethin when the user start
I have two fields in two diferent fields and I need to validate the values that the user enter in that field, example: only let to insert numeric values in the fisrt field and in another case when the a second field get focus i need to show a picker view and put the values that the user choose in than second field.
I thinking that was better the insert, edit or delete rows to have to be confirm by a button...
Hi,
Sure, the IGGridViewDataSourceHelper has a property called editingDelegate, which takes a protocol of type:
IGGridViewDataSourceHelperEditingDelegate
There are 2 methods on this protocol, that will give you exactly what you want:
CellEnteringEditMode and CellExitingEditMode