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

Changing the width of MVC textbox

1 Answer 594 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 05 Jul 2017, 07:06 PM

I have the following textbox defined...

@(Html.Kendo().TextBox().Name("textbox_DataSourceName").HtmlAttributes(new { style = "width:500px;" }))

 

When it's rendered the width does not change, no matter what size I specify.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 07 Jul 2017, 09:11 AM
Hello Neil,

I was able to observe the same issue as the Site.css file(from Kendo UI template project) has a rule for set to 280px for all input elements. Please check if there is a similar rule in the application.

If there is a similar rule, either remove the rule or set to a larger max-width value.

Regards,
Stefan
Progress Telerik
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 (charts) and form elements.
Tags
General Discussions
Asked by
Neil
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or