I'm using the latest version of UI for ASP.NET MVC (2014.3.1119)
How do I get a templated button and the export to excel/pdf buttons in a grid toolbar. I can get either the customs buttons OR the pdf/excel buttons, but if I specify both, the excel/pdf buttons do not appear. A similar issue exists with the create button and a templated button, but this can be fixed using @item.CreateButton() in the template definition instead of tb.Create();
So in the code snippet below, I just get the "Create New" button. If I remove that button, I get the Excel and pdf buttons.
Thanks,
Ian
How do I get a templated button and the export to excel/pdf buttons in a grid toolbar. I can get either the customs buttons OR the pdf/excel buttons, but if I specify both, the excel/pdf buttons do not appear. A similar issue exists with the create button and a templated button, but this can be fixed using @item.CreateButton() in the template definition instead of tb.Create();
So in the code snippet below, I just get the "Create New" button. If I remove that button, I get the Excel and pdf buttons.
.ToolBar(tb => { tb.Excel(); tb.Pdf(); tb.Template(@<text>@Html.ActionLink("Create New", "Create", null, new {@class = "btn btn-primary btn-xs pull-right"})</text>);})Thanks,
Ian