This question is locked. New answers and comments are not allowed.
Hi all,
I know the whole Telerik MVC controls use fluent interface to setup the control, such as
But how about I need to wire up control events based on some condition. For example what I need here is that if some property value of my view model is some certain value I wire OnLoad("Event2") event, all other time I don't need such event. I don't think I can do if..else.. in the control setup code.
Thanks
Hardy
I know the whole Telerik MVC controls use fluent interface to setup the control, such as
<%= Html.Telerik().TreeView() .Name("myName") .ClientEvents(events => events.OnSelect("Event1").OnLoad("Event2"))%>But how about I need to wire up control events based on some condition. For example what I need here is that if some property value of my view model is some certain value I wire OnLoad("Event2") event, all other time I don't need such event. I don't think I can do if..else.. in the control setup code.
Thanks
Hardy