This question is locked. New answers and comments are not allowed.
Hi All,
I have Actionlink buttons on a number of grids that work fine. However, I have one form where the actioninks will not show and the only real difference I can see between this form and the others, is that it is rendered on a Telerik Tabcontrol. Can anyone see my problem.
Here is the markup from the Tab Control form:
and here is my markup from the Risks tab:
I have Actionlink buttons on a number of grids that work fine. However, I have one form where the actioninks will not show and the only real difference I can see between this form and the others, is that it is rendered on a Telerik Tabcontrol. Can anyone see my problem.
Here is the markup from the Tab Control form:
@model GRID.ViewModels.ComputerBreakDownSectionViewModel @{ ViewBag.Title = "Edit"; } @Html.Hidden("policyZoneID", ViewData["policyZoneID"]) @Html.Hidden("sectionID", ViewData["sectionID"]) @Html.Hidden("tabIndex", ViewData["tabIndex"]) @{Html.RenderPartial("PolicyHeader", ViewData["policy"]);} <div class="frame details"> <h2> Edit Computer Breakdown Section</h2> @using (Html.BeginForm()) { <div> <div> @Html.ValidationSummary() </div> @{Html.Telerik().TabStrip() .Name("ComputerBreakdownTabStrip") .Effects(fx => fx.Expand() .Opacity() .OpenDuration(150) .CloseDuration(150)) .Items(tabstrip => { tabstrip.Add() .Text("Section") .Content(Html.Partial("CreateEditPartial", ViewData["ComputerBreakdownSection"]).ToHtmlString()); tabstrip.Add() .Text("Risks") .Content(Html.Partial("RiskIndex", Model.ComputerBreakdownRisks, new ViewDataDictionary { { "policyZoneID", ViewData["policyZoneID"] }, { "sectionID", ViewData["sectionID"] } }).ToHtmlString()); }) .SelectedIndex(ViewData["tabIndex"] != null ? Convert.ToInt32(ViewData["tabIndex"].ToString()) : 0) .Render(); } </div> <script type="text/javascript"> $("#saveButton").button({ icons: { primary: "ui-icon-check"} }); $("#cancelLink").button({ icons: { primary: "ui-icon-close"} }); $("#risksLink").button({ icons: { primary: "ui-icon-zoomin"} }); $(".editLink").button({ icons: { primary: "ui-icon-pencil"} }); $(".deleteLink").button({ icons: { primary: "ui-icon-close"} }); $(".addRisk").button({ icons: { primary: "ui-icon-plus"} }); </script> } </div> @model GRID.ViewModels.ComputerBreakDownSectionViewModel @{ ViewBag.Title = "Index"; } @Html.Hidden("policyZoneID", ViewData["policyZoneID"]) @Html.Hidden("sectionID", ViewData["sectionID"]) <h2> Risks</h2> @(Html.Telerik().Grid<GRID.ViewModels.ComputerBreakdownRiskViewModel>() .Name("computerRisksGrid") .Sortable() .DataKeys(keys => keys.Add(r => r.ComputerBreakdownRiskID)) .ToolBar(commands => commands.Custom().ButtonType(GridButtonType.ImageAndText).Text("Add New Risk").HtmlAttributes(new { @class = "addRisk" }).Action("Create", "ComputerBreakdownRisk", new { policyZoneID = ViewData["policyZoneID"], sectionID = ViewData["sectionID"] })) .DataBinding(dataBinding => { dataBinding.Ajax() .Select("_RisksIndex", "ComputerBreakdownSection", new { policyZoneID = ViewData["policyZoneID"], sectionID = ViewData["sectionID"] }); }) .Columns(columns => { columns.Template(@<text> @Html.ActionLink(" ", "Edit", "ComputerBreakdownRisk", new { riskID = @item.ComputerBreakdownRiskID, policyZoneID = ViewData["policyZoneID"], sectionID = ViewData["sectionID"] }, new { @class = "editLink" }) @Html.ActionLink(" ", "Delete", "ComputerBreakdownRisk", new { riskID = @item.ComputerBreakdownRiskID, policyZoneID = ViewData["policyZoneID"], sectionID = ViewData["sectionID"] }, new { @class = "deleteLink" }) </text>).Title("Commands"); columns.Bound(r => r.Description); columns.Bound(r => r.IndemnityPeriod); columns.Bound(r => r.ManuallyRated); }) .RowAction(row => { if (row.IsAlternate) { row.HtmlAttributes["style"] = "background:aliceblue;"; } }) .Pageable() )