Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
CellExitingEditMode
posted

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

Parents
  • 40030
    Suggested Answer
    Offline posted

    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

Reply Children
No Data