Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy are some of these Monotouch.Dialog cells appearing empty?
    primarykey
    data
    text
    <p>I have what I believe is a pretty straightforward Monotouch.Dialog class.</p> <pre><code>public partial class EditAccountDialog : DialogViewController { Section emailSection; Section passwordSection; Section profileSection; Section addressSection; EntryElement emailEntry; EntryElement passwordEntry; EntryElement password2Entry; EntryElement firstNameEntry; EntryElement lastNameEntry; EntryElement phoneNumberEntry; EntryElement streetEntry; EntryElement street2Entry; EntryElement cityEntry; EntryElement stateEntry; EntryElement zipEntry; public EditAccountDialog(bool pushing) : base (UITableViewStyle.Grouped, null, pushing) { emailEntry = new EntryElement(null, "example@domain.com", String.Empty); passwordEntry = new EntryElement (null, "Password", String.Empty, true); password2Entry = new EntryElement (null, "Re-enter password", String.Empty, true); firstNameEntry = new EntryElement ("First Name", "First Name", String.Empty); lastNameEntry = new EntryElement ("Last Name", "Last Name", String.Empty); phoneNumberEntry = new EntryElement ("Phone Number", "###-###-####", String.Empty); streetEntry = new EntryElement ("Street", "#### Any St.", String.Empty); street2Entry = new EntryElement ("Street 2", "Apt #", String.Empty); cityEntry = new EntryElement ("City", "City", String.Empty); stateEntry = new EntryElement ("State", "State", String.Empty); zipEntry = new EntryElement ("ZIP Code", "#####", String.Empty); emailSection = new Section ("Email"){ emailEntry, }; passwordSection = new Section ("Password"){ passwordEntry, password2Entry, }; profileSection = new Section("Profile") { firstNameEntry, lastNameEntry, phoneNumberEntry, }; addressSection = new Section("Address") { streetEntry, street2Entry, cityEntry, stateEntry, zipEntry, }; Root = new RootElement("Edit Account") { emailSection, passwordSection, profileSection, addressSection, }; } public virtual void HandleGetAccountResponse(GetAccountResponse response) { emailEntry.Value = response.Email; firstNameEntry.Value = response.FirstName; lastNameEntry.Value = response.LastName; phoneNumberEntry.Value = response.Phone; streetEntry.Value = response.StreetAdd; street2Entry.Value = response.StreetAdd2; cityEntry.Value = response.City; stateEntry.Value = response.State; zipEntry.Value = response.Zip; } } </code></pre> <p>After the page loads, I asynchronously call a REST API for existing account information, which then calls <code>HandleGetAccountResponse</code> above to pre-populate every <code>EntryElement</code> in the Dialog.</p> <p>I inspect the REST response and know that I am receiving all of the necessary data. The problem that I am running into is that one or two random cells on this page appear to be blank, even after their values have been set. For example, the Zip and City fields might appear to be blank.</p> <p>What is even more confusing is that, if I scroll to the bottom and see that the Zip and City fields are blank, then scroll all the way back up, then scroll to the bottom again, a <strong>different</strong> set of cells might be blank, such as Street2 and State.</p> <p>Obviously this isn't normal behavior for Monotouch.Dialog or no one would use it. What can I do to resolve this problem?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload