Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

GrowRowTableDelegate.RowSelected is not being called #74

Closed
Ismar11 opened this issue Feb 17, 2016 · 3 comments
Closed

GrowRowTableDelegate.RowSelected is not being called #74

Ismar11 opened this issue Feb 17, 2016 · 3 comments

Comments

@Ismar11
Copy link

Ismar11 commented Feb 17, 2016

I think it is a common bug in Xamarin, but RowSelected event is not being fired.

@rzaitov
Copy link

rzaitov commented Feb 17, 2016

Hello @Ismar11 could you provide an example (or sample name) where RowSelected is not being fired?

@Ismar11
Copy link
Author

Ismar11 commented Feb 18, 2016

The sample solution is GrowRowTable.
https://github.com/xamarin/monotouch-samples/tree/master/GrowRowTable

public override void RowSelected (UITableView tableView, Foundation.NSIndexPath indexPath) { Console.WriteLine("Row selected: {0}",indexPath.Row); }

On GrowRowTableDelegate there is an override for RowSelected method that it is not being called when the event fires.

However, I found a solution which is overriding this method on GrowRowTableViewController. This is the same that happened with NumberOfSections and RowsInSection methods, for some reason they just work when are called from the controller class. I suppose it is related with the bug https://bugzilla.xamarin.com/show_bug.cgi?id=37448. My GrowRowTableView.designer has the same auto-generated code which I guess is wrong.
` [Register ("GrowRowTableView")]
partial class GrowRowTableView
{
[Outlet]
[GeneratedCode ("iOS Designer", "1.0")]
GrowRowTableViewController dataSource { get; set; }

    [Outlet]
    [GeneratedCode ("iOS Designer", "1.0")]
    GrowRowTableViewController @delegate { get; set; }

    void ReleaseDesignerOutlets ()
    {
        if (dataSource != null) {
            dataSource.Dispose ();
            dataSource = null;
        }
        if (@delegate != null) {
            @delegate.Dispose ();
            @delegate = null;
        }
    }
}`

@Arpit360
Copy link
Contributor

I have reported the bug into bugzilla for this issue:
https://bugzilla.xamarin.com/show_bug.cgi?id=42228

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants