Why is there no simple Input widget?

Thread is closed for posting
16 posts, 0 answers
  1. Sergei
    Sergei avatar
    6 posts
    Member since:
    Nov 2011

    Posted 12 Dec 2011 Link to this post

    Hi.
    You have AutoComplete and NumericTextBox but no simple Input, why?
    It'd usefull to have textbox control with same styling as other controls.
    Also I'd expect from it to have some vilidation capabilities (max length, mandatory, regexp pattern).

  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 12 Dec 2011 Link to this post

    Hello Sergei,

    You can have a consistently styled textbox by applying a k-textbox CSS class to it. We provide validation outside the other widgets' scope, including regular expressions:

    http://demos.kendoui.com/web/validator/index.html

    Maxlength is a standard HTML attribute that you can use at the moment as well and it will work.

    Greetings,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Sergei
    Sergei avatar
    6 posts
    Member since:
    Nov 2011

    Posted 12 Dec 2011 Link to this post

    Dimo, I can't find "k-textbox" class, did you mean "k-input" ?
    If so then it's not very nice. Mostly I'd expect to have highlighing of the current focused inputbox.

    Anyway I'd encourage you to create a separate widget Input/TextBox. It'd allow to have higher level abstraction that just html input.
  5. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 12 Dec 2011 Link to this post

    Hi Sergei,

    I meant k-textbox. The CSS class is used on the demo page provided in my previous reply - e.g. the Name field.

    Thanks for your feedback.

    Greetings,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. rgullhaug
    rgullhaug avatar
    9 posts
    Member since:
    Dec 2008

    Posted 14 Dec 2011 Link to this post

    I agree with Sergei. Why isn't there a textbox control styled in the same way as the Autocompletebox shown at this page: http://demos.kendoui.com/themebuilder/index.html (See the first control under "Pickers")? This control should also be bindable to a datasource. If you make a regular input box and just style it with k-input or k-textbox it will look bad compared to the other controls.
  7. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 14 Dec 2011 Link to this post

    Hi Kalle,

    Currently a plain textbox control is not in our to-do list, as it is a low priority task for us. You can easily use the AutoCompete HTML output and CSS classes, and it will look like desired.

    Regards,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. TazDeveloper
    TazDeveloper avatar
    18 posts
    Member since:
    Feb 2010

    Posted 21 Dec 2011 Link to this post

    One way around this is to use an Autocomplete and set the dataSource to an empty data set.  This gives you a standard text box with the same look and feel.  When the user types in the box, there is nothing found in the search, so it functions as a text box input.

    var emptydata = [];

    It's working for me.

    Cheers,
            Paul
  9. Vadivel
    Vadivel avatar
    10 posts
    Member since:
    Apr 2012

    Posted 26 Apr 2012 Link to this post

    I have try to validate placeholder input box , this working on firefox but doesn't work IE, how does solve this issues

    this my code

     <input type="text" style="width:150px" placeholder="First Name" required="required" id="firstname" validationmessage="Please enter {0}" class="k-textbox" name="firstname">
                                    <input type="text" style="width:150px" placeholder="Middle Name"  id="middlename" validationmessage="Please enter {0}" class="txtInputL3" name="middlename">
                                    <input type="text" style="width:150px" placeholder="Last Name" required="required" id="lastname" validationmessage="Please enter {0}" class="txtInputL3" name="lastname">
                                    
        <span class="k-invalid-msg" data-for="firstname"></span>  <div class="lastNameValida">  <span class="k-invalid-msg" data-for="lastname"></span></div>                   



    jQuery(document).ready(function(){
    jQuery(".btns").click(function(){
     
             var validator = jQuery(".tableCont").kendoValidator().data("kendoValidator");
      

                            if (validator.validate()) {
                
                                
                        }
  10. Darryl
    Darryl avatar
    2 posts
    Member since:
    May 2012

    Posted 24 Aug 2012 Link to this post

    I agree with Sergei in that it what would be useful to have a Kendo MVC Helper
    for a standard input text-box for form-input to replace the standard one provided.
    i.e.  @Html.EditorFor(model => model.Name)
    As mentioned you could use the 
        @Html.Kendo().AutoCompleteFor(model => model.Name)
    But then it generates this unnecessary function. 
    <script>
    jQuery(function(){jQuery("#Make").kendoAutoComplete({});});
    </script>
    Thanks

    Darryl
  11. Mark Hanson
    Mark Hanson avatar
    9 posts
    Member since:
    Oct 2012

    Posted 06 Sep 2012 Link to this post

    It is absolutely crazy that you guys do not have a basic text box. You are selling a control library. Every form uses a text box! 

    http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultcs.aspx 
    http://mvc.devexpress.com/Editors/TextBox 

    It needs to have basic functionality like:

    Input Restriction:
    http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/firstlook/defaultcs.aspx 

    Input Mask:
    http://demos.telerik.com/aspnet-ajax/input/examples/radmaskedtextbox/firstlook/defaultcs.aspx 

    Any comprehensive web application needs these functions!

    Multiline Text Box plugin is missing also???

  12. Pat Tormey
    Pat Tormey avatar
    20 posts
    Member since:
    Feb 2010

    Posted 06 Sep 2012 Link to this post

    Gotta Agree with Mark (and everybody else) on this one.. 
    You are billing it as a full set.. I love it but, starting out with fuzzy edges and work arounds is not the way to go.
    Move it up you TODO list  or you'll be hearing this complaint a lot.

    Pat Tormey
    NH USA
  13. Mark Hanson
    Mark Hanson avatar
    9 posts
    Member since:
    Oct 2012

    Posted 06 Sep 2012 Link to this post

    Just to throw some more fuel on the fire, here are some basic controls I had made to analyse functionality for a major web application project. https://mvclib.lixi.id.au/Textbox 

    Disclaimer: I am not a developer. I am a product solution architect/designer. This project was outsourced to cost effective developers. The aim of the project was to implement a UI that I could test and manipulate the properties for each control. There are a lot of CSS properties etc which are not really control properties just for my benefit.

    A lot of research and development went into narrowing down the core functionalities and deciphering properties across many control libraries from many technologies. Textbox, Listbox, Combobox and Dropdown have what I have established as the basic properties from a business perspective that these controls should have.

    If this post is inappropriate please delete it. Otherwise feel free to copy the functionality to KendoUI to enable us to develop real web applications with Kendo! I would be happy to provide an analysis of functionality missing from Kendo for each control.

    Some obvious things:

    1. There is no Text Input plugin. (Should have mask, should have input restriction and other basic text input properties)
    2. There is no Multiline Text Input plugin.
    3. Combo Box doesn’t have an option to prevent typing custom text. (I can't find the post on this but was a lame response from support)
    4. Dropdown List should be able to have null value.
    5. There is no Radio Buttons List plugin
    6. There is no Checkbox List plugin
    7. Plugins doesn’t have a “destroy” method, which is very important in developing.
  14. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 10 Sep 2012 Link to this post

    Hi all,

    We appreciate your feedback and feature requests. We currently use Kendo UI UserVoice as the main tool for measuring how much a widget or functionality is demanded. Please vote there.

    With regard to ComboBox and disabled custom text - please use a DropDownList. If filtering is required, then use a ComboBox and its change event to detect if custom value has been entered - in this case widget.value() will not be null, but widget.selectedIndex will be -1.

    Destroy methods have already been implemented and are available in the internal builds.

    Regards,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  15. Nathan
    Nathan avatar
    39 posts
    Member since:
    Sep 2011

    Posted 20 May 2013 Link to this post

    The bog standard html.editorfor doesn't allow the adding of events or a name either.

    It's pretty shameful that Kendo doesn't have a textbox... it's not like it would take you guys long to write it... you could just rip-off your existing combobox.
  16. Mike
    Mike avatar
    7 posts
    Member since:
    Nov 2013

    Posted 13 Nov 2013 Link to this post

    I have tried attaching k-textbox to the class of a normal text box. This works and looks fine in Chrome, but in IE the first 3 characters on teh left are obscured.

    Anyone know why? Or know a better class to apply that overcomes this problem?

    Cheers Mike
  17. Robert
    Robert avatar
    6 posts
    Member since:
    May 2011

    Posted 24 Mar 2014 Link to this post

    What a joke not to have an edit control...
Back to Top
Kendo UI is VS 2017 Ready