This is a migrated thread and some comments may be shown as answers.
MCV Wrapper for Binding to a TextBox?
3 Answers 52 Views
This is a migrated thread and some comments may be shown as answers.
Caleb
Top achievements
Rank 1
Caleb asked on 22 Aug 2014, 03:39 PM
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.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 26 Aug 2014, 08:18 AM
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.

 
0
Caleb
Top achievements
Rank 1
answered on 27 Aug 2014, 07:51 PM
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.
0
Dimo
Telerik team
answered on 28 Aug 2014, 06:31 AM
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.

 
Asked by
Caleb
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Caleb
Top achievements
Rank 1
Share this question
or