MCV Wrapper for Binding to a TextBox?

4 posts, 0 answers
  1. Caleb
    Caleb avatar
    2 posts
    Member since:
    Aug 2014

    Posted 22 Aug 2014 Link to this post

    So I have a situation where I am using asp.net MVC controllers in a web interface I'm working on.  

    The way it's set up is such that the controller passes a model to the view which then has it defined like this: @model ExceptionReportDBModel.Contributor

    ExceptionReportDBModel.Contributor is a class generated by EntityFramework.

    The issue is, I can't find a way, using mvc wrapper functions, to bind a textbox or textlabel to the model.  I have only been able to find solutions using javascript, which presents a problem because I have not been able to figure out how to bind to the model provided by my asp.net mvc controller using javascript...

    If someone know of a wrapper function for this, or if you know how to use javascript along with an mvc model passed from the controller, that would be quite helpful.
  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 26 Aug 2014 Link to this post

    Hi Caleb,

    I don't see a connection between the question and Kendo UI. Let me know if I am missing something. Otherwise, we can leave this thread to the community.

    Regards,
    Dimo
    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. UI for ASP.NET MVC is VS 2017 Ready
  4. Caleb
    Caleb avatar
    2 posts
    Member since:
    Aug 2014

    Posted 27 Aug 2014 in reply to Dimo Link to this post

    Sorry, I should have been more clear.  I am using Kendo UI and the mvc wrapper functions that it provides, and cannot find a Kendo UI mvc wrapper function for binding a Kendo UI TextBox, or Kendo UI TextLabel to my model.
  5. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 28 Aug 2014 Link to this post

    Hi Caleb,

    We included а TextBox helper in the latest official release or UI for ASP.NET MVC.

    http://www.telerik.com/forums/helper-for-textbox

    In older Kendo UI versions, you can use a plain Html.TextBox helper with a k-textbox CSS class to style it consistently with the other Kendo UI widgets.

    http://docs.telerik.com/kendo-ui/getting-started/web/appearance-styling#primitives

    Regards,
    Dimo
    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.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready