I have a Telerik DropDown
@(Html.Telerik().DropDownList().Name("DropDownList").HtmlAttributes(new {style = "width:274px"}))
for this i have a Viewmodel from which i need to dynamically set the Width of this element as per the changes in the rules like
.HtmlAttributes(new {style = "width:@model.DynamicWidth"}))
is this approach possible? if so how?
it should be:
I didn’t checked it.