Unplanned
Last Updated: 14 Oct 2020 07:44 by ADMIN
Avromi
Created on: 13 Sep 2020 23:13
Category: NumericTextBox
Type: Feature Request
2
Add placeholder to the numeric text box
There should be a way to add a placeholder text to the numeric input just like other inputs. Otherwise, you cannot use this feature for a form that includes this input as it would be inconsistent with other controls. is there a way to accomplish this?
5 comments
ADMIN
Marin Bratanov
Posted on: 14 Oct 2020 07:44

Hello Avromi,

A placeholder for the numeic textbox is not that trivial. It already has a Format and Decimals rules that govern the display when it is not focused and when it is focused. It is likely that a future release will also bring floating labels across the board, and they also act like placeholders. Then, the next question is - what is considered an "empty" numeric textbox, considering numerical value types have default values and are rarely null - for example, should 0 be considered an empty textbox? What should happen when it focuses - should that zero be converted to the proper number of decimals, or should the placeholder stay? These are the questions and issues that I can think of, and once this gets through the UX design, there might be even more questions. Thus, this requires proper planning, prioritization and execution.

That said, there is no possible workaround - this requires touching the DOM which is not trivial in Blazor from the parent component unless already implemented in the child component. What I can suggest you consider is adding a <label> for that input that tells the user what they should write there, it also helps screen readers and focusing the input.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Avromi
Posted on: 13 Oct 2020 19:05

Hi Marin,

Thank you for the explanation. I understand that there are many other much higher priorities. However this seems to be such a simple item to implement. I may be missing something obvious, but this seems like a change that would take 5 minutes to make. There is nothing custom needed here. a simple way to set the placeholder attribute that is supported in all browsers on inputs. That's it...

Also, do you have any guidance in terms of workarounds?

 Thank you 

ADMIN
Marin Bratanov
Posted on: 13 Oct 2020 18:57

Hello Avromi,

I am sorry you feel that way. The key reason this is not worked on is that it has a very low priority due to the very low demand - your request a month ago was the first time this was needed in about a year since this component has existed, and it hasn't been requested a second time yet. This means that the public interest is very low in this, and we need to focus on other tasks that have a higher demand, impact and priority. You can, for example, sort the entire portal by popularity to see the difference (link)

 

Regards,
Marin Bratanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Avromi
Posted on: 13 Oct 2020 16:49

Hi,

can you suggest a workaround for this issue. It is incredibly frustrating that something as simple as this is not implemented. This also makes the placeholder functionality on other form controls completely useless as the basic form controls don't support it. is there a reason that this is not being implemented?

 

Regards

Avromi

 

ADMIN
Marin Bratanov
Posted on: 14 Sep 2020 16:15

Hi Avromi,

At the moment, there isn't a placeholder on the numeric textbox. You can Follow this thread for status updates on this matter, and you may also find interesting this similar request for the date pickers (if so, Vote for it and Follow it too).

 

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.