This question is locked. New answers and comments are not allowed.
Hi all,
Please consider this dropdownlist code:
When using HtmlAttributes what do I do if my anonymous member name is a c# reserved word and a valid HTML attribute? (eg 'class')? This wont compile (obviously) how do I set the 'class' htmlattribute?
I dont want to add the class dynamically based on the ID of the DOM element if I dont have to.......
$("WorkFlowEventTypeId").attr("class","sparseboundcombo);
.HtmlAttributes(new { class= "sparsebounddropdown"}) - does not work... how to set class?
Please consider this dropdownlist code:
When using HtmlAttributes what do I do if my anonymous member name is a c# reserved word and a valid HTML attribute? (eg 'class')? This wont compile (obviously) how do I set the 'class' htmlattribute?
I dont want to add the class dynamically based on the ID of the DOM element if I dont have to.......
$("WorkFlowEventTypeId").attr("class","sparseboundcombo);
.HtmlAttributes(new { class= "sparsebounddropdown"}) - does not work... how to set class?
<%= Html.Telerik().DropDownListFor(o => o.WorklflowEventTypeId)
.DataBinding(binding => binding.Ajax().Select("_WorklflowEventLoading", "Workflow"))
.ClientEvents(events => events.OnOpen("rebindCombo"))
.Name("WorkflowEventTypeId")
.HtmlAttributes(new { style = "sparsebounddropdown"})
%>