Is there any way to cancel datasource update by the CellExitingEditMode function of an overwritten IGGridViewDataSourceHelperEditingDelegate ?
For my issues i only need the string the user has entered, but don't want the underlying data to be changed.
best regards
gdo
Hi!
You can use the following selector off of the IGGridViewDataSourceHelperEditingDelegate
-(id)dataSourceHelper:(IGGridViewDataSourceHelper*)dsh cellExitingEditMode:(IGGridViewCell*)cell usingValue:(id)value withEditor:(UIView*)editor forColumn:(IGGridViewColumnDefinition*)col;
You can read more about the method here: http://help.infragistics.com/iOS/2014.1/gridapi/Protocols/IGGridViewDataSourceHelperEditingDelegate.html#//api/name/dataSourceHelper:cellExitingEditMode:usingValue:withEditor:forColumn:
But basically, you can return the value you want to be used for the cell. Since the underlying data object hasn't been updated yet, if you want to cancel it, you would simply lookup and return the original value.
Hope this helps.
-SteveZ
Thanks for your quick response!
I will take look at the cellExitingMode and meanwhile i found another solution by
overwriting the SetValueForUndefinedKey() method in my overwritten NSObject Class, i use as Data for my overwritten DataSourceHelper ...
Best regards