This is a migrated thread and some comments may be shown as answers.

type=text not set..

5 Answers 29 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Drew Greenwell
Top achievements
Rank 2
Drew Greenwell asked on 30 Jun 2011, 04:18 PM
the type attribute of the text input on this control is not set to 'text' as it should be.

This must be added to create output consistent with every other control on the internet.
.InputHtmlAttributes(new { style = "width:100%", type="text" })

Thanks

5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Jun 2011, 04:29 PM
Hello Drew,

type="text" is not mandatory and is inferred.

Best wishes,
Dimo
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Drew Greenwell
Top achievements
Rank 2
answered on 30 Jun 2011, 04:37 PM
Leaving an input's type inferred === inconsistent output and poor practice on the part of the developer plain and simple.  It causes the user to have to apply a class or id to every text element.. On an Editor template the problem is exacerbated 10 fold..  input[type=text] becomes useless and every case needs special treatment.
I'm not asking for the world, just letting you guys know that what you're doing is against the norm and causes developer headaches, i.e. breaks code that previously called input[type=text]. Very counter intuitive to what my team and I would expect from you guys..

Thanks
0
Dimo
Telerik team
answered on 30 Jun 2011, 04:46 PM
There is no problem to add this attribute and we will do it. However, can you please specify which norm exactly do we violate?

Regards,
Dimo
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Drew Greenwell
Top achievements
Rank 2
answered on 30 Jun 2011, 05:03 PM
Thanks,
The 'norm' is what user's(aka developers) expect based on the tools and patterns out on the internet today.
asp:texbox output = <input id="blah" type="text" name="blah">
@Html.TextBox output = <input type="text" value="" name="blah" id="blah" data-val-required="blah is required" data-val="true" class="text-box single-line">
Dreamweaver insert->form->text output: <input type="text" name="blah" id="blah" />
Expression Web 4 toolbox output: <input name="Text1" type="text" />

In additon, pull up Google.com, Bing.com, Microsoft.com, Facebook.com and pick ANY textbox.. These are the norms I speak of ;)
0
Drew Greenwell
Top achievements
Rank 2
answered on 30 Jun 2011, 05:03 PM
-- Double Post --
Tags
NumericTextBox
Asked by
Drew Greenwell
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Drew Greenwell
Top achievements
Rank 2
Share this question
or