Bug 20051 - Overriding TableView.EditingStyleForRow and TableView.CanEditRow doesn't get fired on UITableViewController
Summary: Overriding TableView.EditingStyleForRow and TableView.CanEditRow doesn't get ...
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 7.2.2
Hardware: PC Windows
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-05-26 22:47 UTC by Nate Cook
Modified: 2014-05-28 12:09 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Nate Cook 2014-05-26 22:47:08 UTC
First of all: How can I tell what version of Xamarin.iOS I have installed? I have Xamarin.iOS for Visual Studio 1.12 installed, but that doesn't tell me to what version of Xamarin.iOS that corresponds. I am not reporting a Visual Studio bug. I think I am reporting a bug with the MonoRuntime. I selected version 7.2.2 because that's what is installed on my mac. (Stable channel, in both cases.) It would be nice if the Visual Studio about dialog could report the Xamarin.iOS version in addition to the Visual Studio extension version. In the meantime a workaround to get that version would be great.

The bug is: EditingStyleForRow and CanEditRow work when overridden in the TableViewSource, but they don't work when overridden in the UITableViewController itself. Overriding CanMoveRow, MoveRow, CommitEditingStyle, CustomizeMoveTarget, etc etc all work when overridden directly in the UITableViewController (without setting a TableViewSource), but this doesn't work for EditingStyleForRow and CanEditRow.
Comment 1 Shruti 2014-05-27 11:12:54 UTC
Hi Nate,

Please go through following screencast to check the version :
Windows (VS): http://screencast.com/t/EPDktCJMZ8KV
Mac : http://screencast.com/t/K3NKOWwK9yF

Could you please provide us the exact test steps you followed. If possible please attach a small complete project that demonstrates this behaviour.

This will help us efficiently confirm and fix this bug.

Comment 2 Nate Cook 2014-05-28 11:54:11 UTC

The Xamarin.iOS version is 1.12. Version 1.12 does not show up in the versions dropdown on bugzilla.
Comment 3 Nate Cook 2014-05-28 11:55:03 UTC
After deleting the app from my device, cleaning and rebuilding, I can no longer reproduce the problem. Sorry about that. You can close this ticket.
Comment 4 Rolf Bjarne Kvinge [MSFT] 2014-05-28 12:09:56 UTC