Helper for TextBox

7 posts, 0 answers
  1. Alex
    Alex avatar
    4 posts
    Member since:
    Jul 2014

    Posted 15 Jul 2014 Link to this post

    Is there a helper for TextBox? I tried using AutoComplete, but I think it's an over kill and it does not cache entries like Text Boxes, so it functions differently and may confuse users.

    Thanks
    Alex
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 17 Jul 2014 Link to this post

    Hello Alex,

    I am happy to inform you that we introduced such an Html helper in our UI for ASP.NET MVC suite starting Q2 2014 (v.2014.2.716). You can use it in the following way:

    //Razor syntax  
     @(Html.Kendo().TextBox()
         .Name("kTextBox")
         .Value("Test")
       )

    Best regards,
    Sebastian
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Alex
    Alex avatar
    4 posts
    Member since:
    Jul 2014

    Posted 17 Jul 2014 in reply to Sebastian Link to this post

    I downloaded and upgraded my solution, but I don;'t see .TextBox......
  4. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 18 Jul 2014 Link to this post

    Hello again Alex,

    Can you double-check that you updated the assembly references in your project to reference the 2014.2.716 version in it? I tested this simple example again and it work as expected, using the VS Extensions New Project wizard for web application boilerplate.

    Regards,
    Sebastian
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Victor
    Victor avatar
    3 posts
    Member since:
    Nov 2016

    Posted 16 May in reply to Sebastian Link to this post

    great!  why does it not include EVENTS?  Like the numeric textbox does?  AND why is the NUMERIC textbox (which has an events field) so over documented?
  6. Victor
    Victor avatar
    3 posts
    Member since:
    Nov 2016

    Posted 16 May Link to this post

    To be clear:

     @(Html.Kendo().TextBox()
         .Name("kTextBox")
         .Value("Test")

         .Events(....)  <--- does not exist
       )

  7. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2087 posts

    Posted 19 May Link to this post

    Hello Victor,

    The TextBox helper was introduced for unifying the styles of the simple input element with other helpers from the UI for ASP.NET MVC suite. If you need to handle some events of the input element you could attach the handlers through the HtmlAttributes or with jQuery after the rendering of the element. 


    Regards,
    Konstantin Dikov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top