This question is locked. New answers and comments are not allowed.
Hello All,
I am trying to show a telerik window from a telerik grid. Currently the window shows up but it is opening over a blank master page. below is a what my main view code looks like with the the Action Link.
The Controller code is below:
and the popup window code is below:
I'm trying to figure out why it blanks out the view below before rendering the popup window. Any help would be appreciated.
Thanks,
Bobby
I am trying to show a telerik window from a telerik grid. Currently the window shows up but it is opening over a blank master page. below is a what my main view code looks like with the the Action Link.
<%Html.Telerik().Grid(Model.Lines) .Name("claimDialog") .Filterable() .Columns(columns => { columns.Bound(cl => cl.LineNumber); columns.Bound(cl => cl.ProcedureCode); columns.Bound(cl => cl.Modifiers /*+ "-" + cl.Modifier2 + "-" + cl.Modifier3 + "-" + cl.Modifier4*/).Title("Modifiers"); columns.Bound(cl => cl.PaidAmount); }) .DetailView(detailview => detailview.Template(cl => { %> <% Html.Telerik().Grid(cl.Findings) .Name("Findings" + cl.LineNumber.ToString()) .Columns(columns => { columns.Bound(f => f.FindingType); columns.Bound(f => f.FindingMessage); columns.Bound(f => f.ValidClaimNumber); columns.Template(f => {%> <%=Html.ActionLink(f.ValidClaimNumber.ToString(), "ClaimPopup", new {claimId = f.ClaimID}) %> <%}).Title("actionlink");The Controller code is below:
public ActionResult ClaimPopup(Guid claimId){ ClaimViewModel data = null; data = this.claimViewRepository.Select(claimId); data.Lines = this.claimLineRepository.SelectByClaimId(data.ClaimId); data.Statuses = this.claimstatusRepository.SelectAll(); foreach (ClaimLineModel cl in data.Lines) { cl.Findings = findingsRepository.ListByClaimLine(cl.ClaimLineId); } return PartialView("ClaimPopupx",data);}<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Arm.Master" Inherits="System.Web.Mvc.ViewPage<ClaimViewModel>" %><asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> ClaimView</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <h2>ClaimView</h2> <%Html.Telerik().Window() .Name("ClaimPopup") .Title("Claim Information") .Draggable(true) .Resizable(resizing => resizing .Enabled(false) .MinHeight(250) .MinWidth(250) .MaxHeight(500) .MaxWidth(500) ) .Scrollable(false) .Modal(false) .Buttons(b => b.Maximize().Close()) .Content(() => {%> <h2>claimpopup page</h2> <%Html.RenderPartial("ClaimInformation", Model); %> <%Html.Telerik().Grid(Model.Lines) .Name("ClaimLines") .Filterable() .Columns(columns => { columns.Bound(cl => cl.LineNumber); columns.Bound(cl => cl.ProcedureCode); columns.Bound(cl => cl.Modifiers /*+ "-" + cl.Modifier2 + "-" + cl.Modifier3 + "-" + cl.Modifier4*/).Title("Modifiers"); columns.Bound(cl => cl.PaidAmount); }) .Pageable() .Sortable() .Filterable().Render(); %> <%}) .Visible(true).Render(); %></asp:Content>Thanks,
Bobby