Completed
Last Updated: 25 Nov 2013 15:16 by ADMIN
Imported User
Created on: 13 Nov 2013 15:59
Category: UI for ASP.NET MVC
Type: Feature Request
1
Add a true/false parameter to the Deferred function
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)
)
2 comments
ADMIN
Telerik Admin
Posted on: 25 Nov 2013 15:16
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.
Imported User
Posted on: 22 Nov 2013 19:00
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.