This is a migrated thread and some comments may be shown as answers.
plus minus button
5 Answers 18 Views
This is a migrated thread and some comments may be shown as answers.
wil
Top achievements
Rank 1
wil asked on 15 Nov 2017, 09:20 PM

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

 

5 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 15 Nov 2017, 11:17 PM
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
0
wil
Top achievements
Rank 1
answered on 16 Nov 2017, 01:14 AM

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

 

 

0
Lance | Manager Technical Support
Telerik team
answered on 16 Nov 2017, 04:58 PM
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
0
wil
Top achievements
Rank 1
answered on 17 Nov 2017, 02:47 AM

Ok, one more question then

 

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

 

thanks much

 

0
Lance | Manager Technical Support
Telerik team
answered on 17 Nov 2017, 03:38 PM
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
Asked by
wil
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
wil
Top achievements
Rank 1
Share this question
or