Thanks tommy! I did something like this, but using UIhint... so, when I declared a property I set some decorators depending on the data type and there I used the Css Class. For example:
[Required]
[Display(Name = "Nombre")]
[UIHint("String")]
public string txbName
{
get;
set;
}
And, on the Editor Template:
@model object
@Html.TextBoxFor(model => model, new {@class="k-textbox",style="min-width:200px;" })
Finally, the definition of the CSS class "k-textbox"
.controls-row .k-textbox {
margin: 0 auto;
clear: left;
display: inline-block;
}
I preffer this solution because allows me apply this markup for all textbox in the solution... for my particular case is what I wanted to do:
<div class="controls-row">
@Html.LabelFor(model => model.txbName) //it shows "Nombre"
@Html.EditorFor(m => m.txbName) //it declares an editor for string type
</div>
Thanks for answering! :)