Greetings,
I would like to extend a Kendo.Mvc.UI.Fluent builder in my own html helper method and would like to know the easiest way to do this. To use a very simple scenario, I have many @Kendo.Button components that optionally need to be hidden. Until now I have created HtmlHelper functions and send in my custom parameters for various controls. I would like to start extending the WidgetBuilder itself.
For example is something like this easy to accomplish:
Thanks
I would like to extend a Kendo.Mvc.UI.Fluent builder in my own html helper method and would like to know the easiest way to do this. To use a very simple scenario, I have many @Kendo.Button components that optionally need to be hidden. Until now I have created HtmlHelper functions and send in my custom parameters for various controls. I would like to start extending the WidgetBuilder itself.
For example is something like this easy to accomplish:
public class MyButtonBuilder : Kendo.Mvc.UI.Fluent.ButtonBuilder{ public bool Visible { get; set; } public override void Render() { if(Visible==false) //Do something to return empty HTML else base.Render(); }}Thanks