This question is locked. New answers and comments are not allowed.
I believe I found a bug in Telerik.Web.Mvc project, especifically in the method Html() of class GridToolBarCustomCommand and class GridToolBarInsertCommand when using version 2010.2 825 with MVC1. The insert commands or custom commands are not redered as you can see in code snippet below:
{
#if MVC2
GridUrlBuilder urlBuilder = new GridUrlBuilder(context);
new HtmlTag("a")
.Attributes(HtmlAttributes)
.AddClass(UIPrimitives.Grid.Action, UIPrimitives.Button, UIPrimitives.DefaultState, UIPrimitives.Grid.Add)
.Attribute("href", urlBuilder.Url(context.Server.Select, routeValues =>
{
routeValues[context.Prefix(GridUrlParameters.Mode)] = "insert";
}))
.Html(this.ButtonContent<T>(context.Localization.AddNew, "t-add"))
.AppendTo(parent);
#endif
}
Is that code correct?
Thanks,
Rodrigo Moura
public override void Html(Grid<T> context, IHtmlNode parent){
#if MVC2
GridUrlBuilder urlBuilder = new GridUrlBuilder(context);
new HtmlTag("a")
.Attributes(HtmlAttributes)
.AddClass(UIPrimitives.Grid.Action, UIPrimitives.Button, UIPrimitives.DefaultState, UIPrimitives.Grid.Add)
.Attribute("href", urlBuilder.Url(context.Server.Select, routeValues =>
{
routeValues[context.Prefix(GridUrlParameters.Mode)] = "insert";
}))
.Html(this.ButtonContent<T>(context.Localization.AddNew, "t-add"))
.AppendTo(parent);
#endif
}
Is that code correct?
Thanks,
Rodrigo Moura