plus minus button

6 posts, 0 answers
  1. haluu
    haluu avatar
    10 posts
    Member since:
    Jul 2013

    Posted 15 Nov Link to this post

    Am I missing something?   I don't see how to add plus minus button without using dataform.  Is there a standalone control for this that I can use in xamarin forms?

     

    thanks much

     

  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    488 posts

    Posted 15 Nov Link to this post

    Hello Haluu,

    I'm assuming you're referring to a NumericUpDown or NumericBox type of control? Currently, there is no Xamarin.Forms control for this.

    You can however create a custom renderer and use the native control. Tor example, for the UWP app, you can use the RadNumericBox from UI for UWP. For Android, you can use the Telerik NumberPicker. For iOS, you'll have to create your own.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. haluu
    haluu avatar
    10 posts
    Member since:
    Jul 2013

    Posted 15 Nov in reply to Lance | Tech Support Engineer, Sr. Link to this post

    Oh, I see but telerik dataform seems to create the plus/minus button.  Is that correct?

     

     

  4. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    488 posts

    Posted 16 Nov Link to this post

    Hi Haluu,

    Yes, we create the native controls for the native platforms, this is how all of the editors work internally.

    It's just that with the integer editor, there is not a pre-existing Xamarin.Forms control. Therefore, if you want a standalone NumericBox, you'll need to create one on the native platform, which is done using a Custom Renderer.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. haluu
    haluu avatar
    10 posts
    Member since:
    Jul 2013

    Posted 16 Nov Link to this post

    Ok, one more question then

     

    How can I make TextEditor as multi-line editor?  There is no EditorType.MultilineTextEditor.

     

    thanks much

     

  6. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    488 posts

    Posted 17 Nov Link to this post

    Hi Haluu,

    For anything outside of the shipped editors, you'll need to make your own custom editor. See here for how to create a custom editor, you'll see the overrides listed for each platform.

    To summarize, you need to create renderers for each platform then assign it to the DataForm in the Xamarin.Forms project like this:

    dataForm.RegisterEditor("MyPropertyThatNeedsMultilineEditor", EditorType.Custom);

    You can also find examples of custom editors in the SDKBrowser demo, see here for a description of the demos.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top