or
@(Html.Kendo().DropDownList() .Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty)) .DataValueField("TaxImpsnId") .DataTextField("TaxImpsnName") .DataSource(source => { source.Read(read => { read.Action("_AjaxMethod", "MyController", new { lookupId= 1 }); }).ServerFiltering(true); }))
Hi,
trying to port an Telerik MVC Grid.
But there is no option to change the button type.
.Columns(cols => { .... cols.Command(commands => { commands.Edit().ButtonType(GridButtonType.Image); commands.Delete().ButtonType(GridButtonType.Image); }) }) .ToolBar(tb => { tb.Insert().ButtonType(GridButtonType.Image); })@{Html.Telerik().Grid(Model) .Name("grdAllUsers") .DataKeys(keys => keys.Add(k => k.Id) ) .Columns(columns => { columns.Bound(o => o.FirstName) .Width(150); columns.Bound(o => o.LastName) .Width(150); columns.Bound(o => o.EmailAddress) .Width(200); columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.Image); commands.Delete().ButtonType(GridButtonType.Image); }) .Width(70) .HtmlAttributes(new { style = "text-align:center" }); }) .NoRecordsTemplate(@<text>No User records to display.</text>) .Pageable(paging => paging.PageSize(15) ) .Sortable() .Filterable() .Render();}@{Html.Kendo().Grid(Model) .Name("grdAllUsers") .Columns(columns => { columns.Bound(o => o.FirstName) .Width(150); columns.Bound(o => o.LastName) .Width(150); columns.Bound(o => o.EmailAddress) .Width(200); columns.Command(commands => { commands.Edit().ButtonType(???); commands.Delete().ButtonType(???); }) .Width(70) .HtmlAttributes(new { style = "text-align:center" }); }) .Pageable(paging => paging.PageSize(15) ) .Sortable() .Filterable() .Render();}columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.Image); commands.Delete().ButtonType(GridButtonType.Image); })