This question is locked. New answers and comments are not allowed.
Hi All,
Please find below copy of my code. The edit and delete buttons are taking up far too much screen real estate and should be smaller. However, I'm having a hard time trying to reduce the size. does anybody have any ideas thanks:
Please find below copy of my code. The edit and delete buttons are taking up far too much screen real estate and should be smaller. However, I'm having a hard time trying to reduce the size. does anybody have any ideas thanks:
@model GRID.ViewModels.PolicyViewModelBase@{ ViewBag.Title = "Details";}@section header{ @{Html.RenderPartial("PolicyHeader");}}<div class="frame details"> <h2>Policy Zones</h2> @using (Html.BeginForm()) { @*@Html.Hidden("newZoneTypeId")*@ <input id="AddZone" type="submit" value="Add Zone" /> @Html.DropDownListFor(x => x.PolicyZoneID, new SelectList(Model.PolicyZoneTypes, "Value", "Text")) @Html.Label("Name:") @Html.TextBoxFor(x => x.NewPolicyZoneName) <hr /> @(Html.Telerik().Grid(Model.Zones) .Name("policyZoneGrid") .DataKeys(keys => keys.Add(r => r.PolicyId)) .Columns(columns => { columns.Bound(r => r.PolicyId).Title("Edit").Sortable(false).Filterable(false) .Template(r => @Html.ActionLink("Edit", "Edit", "PolicyZone", new { policyZoneID = r.Id, policyID = r.PolicyId, policyVersion = r.Version }, new { @class = "editLink", @title = "Edit Zone" })).width(3); columns.Bound(r => r.PolicyId).Title("Delete").Sortable(false).Filterable(false) .Template(r => @Html.ActionLink("Delete", "Delete", "PolicyZone", new { policyZoneID = r.Id }, new { @class = "deleteLink", @title = "Delete Zone" })).width(3); columns.Bound(r => r.Name).Title("Name").Width(10); columns.Bound(r => r.TypeName).Title("Type").Width(10); columns.Bound(r => r.CreatedOn).Title("Created On").Width(10).Format("{0:dd/MM/yyyy}"); columns.Bound(r => r.CreatedBy).Title("Created By").Width(10); }) .Pageable() .RowAction(row => { if (row.IsAlternate) { row.HtmlAttributes["style"] = "background:aliceblue;"; } }) ) <script type="text/javascript"> $(".editLink").button({ icons: { primary: "ui-icon-zoomin"} } ); $(".deleteLink").button({ icons: { primary: "ui-icon-trash"} } );</script> }</div>