Presently, there's no way to pass a parameter to the Deferred function. If i have a need to make the control deferred depending on a condition, i have to write the code this way: @{ var treeView = Html.Kendo().TreeView() .Name("aName"); if (this.IsAjax) { treeView.Deferred(); } treeView.Render(); } It would be great if we could pass a parameter that way: @( Html.Kendo().TreeView() .Name("aName") .Deferred(this.IsAjax) )
Thanks for the update, Alexandre! I'll mark this item as completed then, since this is already implemented as you said and will be included in future releases. Meanwhile the workaround you explained is pretty concise and straight-forward.
Maybe it is straight-forward but it would be just normal to have a parameter in the Deffered function to pass a true/false value like every other functions that you have here. I'm very suprised to see that you have declined the idea! btw, an internal build already contain the feature i've asked and the next public release will have it too.