Hi Steve,

Try calling Root.ReloadData (element, UITableViewRowAnimation.None);

Jeff

On Tue, Sep 27, 2011 at 5:21 AM, stevek <[email protected]> wrote:

> I am using the excellent MonoTouch.Dialog and I am trying to update a
> FloatElements caption based on the value of the slider. I have tried
> raising
> an event in the cell and capturing it in my code to update the caption but
> unless I scrollup/scrolldown I cannot get the value to refresh properly.
>
> Does any one have any ideas or am I coming at this the wrong way?
>
> The code I have in my DialogViewController to handle the notification is:
>
> >>>>>>>>>
>
> NSNotificationCenter.DefaultCenter.AddObserver("sDistance.slider.valuechanged",
> delegate (NSNotification n){
>                                Util.Debug("sDistance.slider.valuechanged" +
> sDistance.Value.ToString());
>
>                                float fval = sDistance.Value;
>
>                                sDistance.Caption = (fval / 1000).ToString()
> + " Km";
>
>                                this.ReloadData(); //DOES NOT SEEM TO
> REFRESH THE CELL???
>
>                        } );
>
> <<<<<<<<<<<
>
>
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/MonoTouch-Dialog-experts-plz-help-tp3846591p3846591.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to