Wow, that was it! Thanks so much Dino :-)
(Should have known that one...ah well).

Much appreciated!
Brett


On Sun, Feb 26, 2012 at 4:00 PM, Dean Cleaver <
[email protected]> wrote:

>  Brett,****
>
> ** **
>
> Are you calling the ReloadData etc from the main thread or another thread?
> I’ve seen similar behavior when called from a thread other than the main
> thread.****
>
> ** **
>
> Dino****
>
> ** **
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Brett Spurrier
> *Sent:* Sunday, February 26, 2012 2:56 PM
> *To:* [email protected]
> *Subject:* [MonoTouch] Dialog ReloadData weirdness****
>
> ** **
>
> Hi all,****
>
> ** **
>
> I have a MonoTouch.Dialog DialogViewController in my app, and I am running
> into a bit of a snag.****
>
> ** **
>
> Here is a run through:****
>
> ** **
>
> I create an instance of a DialogViewController and bind it to dynamically
> a created RootElement (which when the view first opens is an empty
> dataset). I then call out to the web, and reconstruct the RootElement data
> upon return.****
>
> ** **
>
> To reload the tableview, I use:****
>
> this.dvc.ReloadData();, ****
>
> ** **
>
> however, no data is refreshed to the screen UNTIL the user taps the view.
> When the user taps, the table redraws and everything is perfect.****
>
> ** **
>
> My question is: how can I force a table redraw upon dynamically creating
> my RootElement? I've tried every combination of SetNeedsDisplay() and
> SetNeedsLayout(). But perhaps I'm missing something about how the
> DialogViewController draws.****
>
> ** **
>
> Does anyone have any ideas?****
>
> ** **
>
> Many thanks,****
>
> Brett****
>
> ** **
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to