Quantcast

Monotouch Dialog StringElement Value empty

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Monotouch Dialog StringElement Value empty

Alejandro Vazquez
Hi,

Im having problems with the Monotouch Dialog StringElement value because it's hidden or invisible, I can't see the value on when showing the view.

Very simple code:

DialogViewController

public override void ViewDidLoad ()
                {
                        base.ViewDidLoad ();

                        var date = new StringElement ("Date:");
                        date.Value = visitor.PermitDate.ToShortDateString ();

                        var root = new RootElement ("Root") {
                                new Section ("Permit Date") {
                                        date,

                                        new StyledStringElement ("Date:", visitor.PermitDate.ToShortTimeString()),
                                        new StringElement ("Authorize:",visitor.AuthorizerPerson)
                                }, new Section("Visitor Info"){
                                        new StringElement ("Name:", visitor.FirstName),
                                        new StringElement ("LastName:", visitor.FathersLast),
                                        new StringElement ("Mother Last Name:", visitor.MothersLast),
                                        new StringElement ("Company:", visitor.Organization)
                                },
                                new Section("Vehicle Info"){
                                        new EntryElement("Plates","",visitor.VehiclePlates),
                                        new StringElement ("Model",visitor.VehicleBrand)
                                }
                        };

                        this.Root = root;
                }
 


UIViewController

public override void ViewDidLoad ()
                {
                        base.ViewDidLoad ();

// here I add the DialogViewController view to the Subview of other UIViewController

                        ConfirmationFormController dv = new ConfirmationFormController (null);
                        dv.ReloadData ();
                        contentView.AddSubview (dv.View);

                }
 
 
The view shows the table with the Captions but all the values are empty. Does anyone have experience such kind of issue?

Thanks, any advice is well appreciated.

Alejandro


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Loading...