Xamarin IOS C1AutoComplete - Zero Documentation! - Need effective help!

Posted by: johntam on 1 January 2019, 9:29 am EST

    • Post Options:
    • Link

    Posted 1 January 2019, 9:29 am EST

    Coding with the latest C1 Studio for Xamarin IOS. Using Visual Studio for Mac, and latest Xamarin.

    I’ve a UIView with a UIStackView, into which I’ve inserted some C1 AutoComplete controls. Here is a working example:

                              case "YESNO":
                                    Valcombo_Entry[] vcYN = new Valcombo_Entry[]
                                    {
                                        new Valcombo_Entry() {sMapVal = "N", sDispVal = "No" },
                                        new Valcombo_Entry() {sMapVal = "Y", sDispVal = "Yes" }
                                    };
    
                                    var YesNo = new C1AutoComplete()
                                    {
                                        AccessibilityIdentifier = sCName,
                                        HighlightedColor = UIColor.Blue,
                                        SelectedBackgroundColor = UIColor.Cyan,
                                        TextColor = UIColor.Black,
                                        AutoComplete = true,
                                        AutoCompleteMode = AutoCompleteMode.StartsWith,
                                        IsAnimated = true,
                                        TextFont = InputFont,
                                        Delay = TimeSpan.FromSeconds(0.3),
                                        IsEditable = true,
                                        DisplayMemberPath = "sDispVal",
                                        SelectedValuePath = "sMapVal",
                                        ItemsSource = vcYN,
                                        Tag = 0,
                                        DropDownHeight = 120,
                                        DropDownMode = DropDownMode.AboveOrBelow
                                    };
                                    YesNo.HeightAnchor.ConstraintEqualTo(30f).Active = true;
                                    YesNo.SelectedIndexChanged += AutoCompleteSelectionChanged;
                                    if ((drData[sCName] != DBNull.Value) && (drData[sCName].ToString().Trim() != ""))
                                    {
                                        YesNo.SelectedValue = drData[sCName].ToString().Trim();
                                    }
                                    vStack.AddArrangedSubview(YesNo);
                                    break;
    
    

    After trying to stumble through the absolute zero useful documentation, I have managed to get these things working. Whatever you see in parentheses () are things for which there is not one tiny iota of documentation, and I had to figure out through long bouts of trial and error on New Year’s Eve.

    What works:

    • "* “The control displays (in a StackView it requires the height constraint you see above”
    • “The values display (the class that enumerates the data must declare every column as a property and not merely as a public field)”
    • "I can assign the value to the control and it will look up the display member (there was nothing at all disclosing as much as the existence of the “Selected Value Path property - thank God for Intellisense)”

      "

    What I cannot figure out:

    • "* “How do I force the control to accept typing that matches only existing characters? While I might want a new value to be accepted (see below), I don’t want that all the time. The example above is a “Yes/No” chooser; typing in “F” may be inappropriate. (:-S)”
    • “When for example, I do want the control to capture a new value having been typed and alert me - “Hey - here is a new value! Would you like to prompt the end user to approve adding a row, or even pop up a quick UIView to capture reuired fields!?” – what event is fired off to tell me that a new value is present, and what event argument(s) would be set to hand back the newly create value member or to reject the input?”
    • “How do I change the arrow icon? It doesn’t even match the documentation!”

      "

    Please give me some useful help. And, if GrapeCity would perhaps want a professionally written manual that explains to its paying customers how the controls are properly used, I might note that I have a software company with over 10 products and a complete library of well written manuals.

    Has anyone out there ever done any of these basic things with the C1 Xamarin IOS controls?

  • Posted 2 January 2019, 10:29 pm EST

    Hi John,

    We have responded to your case on SupportOne with ticked id : 360248

    Thanks

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels