Monday 15 April 2013

asp.net mvc - Kendo Ui Splitter , Panel Bar and Iframe -


I have a keyboard UI slider with the left pane and right pane, in the left pane, I have the Kendui panel bar in which various reports Links are included. Now click on any link, I am trying to open the report page in the right panel using iFrame. But for some reasons the report page is open in a new window.

Sample anchor tag with a link in the panel bar

    

MVV code with Kando Yu Splitter, Kendo U panel bar and I frame code.

  @ (Html.Kendo (). Splitter () Knam ( "splitter"). Orientation (Kendo.amvisi UI. Splitrorianteshn. Horijhontl). Pence (horizontal pence = & gt; { Horizontal Page Add (). Size ("20%"). Html Properties (New {id = "left-pane", style = "height: 100%;"}}. Collegiate (true). Communication (@ & lt ; Div class = "pane-content" & gt; div id = "navigation" & gt; @ (Html.Kendo) .PanelBar () .name ("panelbar"). Expanded mode (KandoMVC UI. PanelBarPandMold Multiple Multilanguage). Html Properties (New {Style = "width: 100%; height: 100%;"}). Aims (panelbar = & gt; {foreach (different categories in model). MyModel.Categories) {panelbar.Add () .text (category). Amit (Report => {foreach (var report in model.myModel.Reports) {if (report category.Eclause (class)) {reports.Add () .text (report.NavigateURL). Encoded (false); }}}}}}}))  ); Horizontal page (). Size ("80%"). Html Properties (new {id = "right-panel", style = "height: 100%;"}) .Collapsible (false) Content (@ 
lt; iframe id = "report display"> gt; & lt; / iframe & gt; & lt; / div & gt;); }) Please suggest what could be wrong here. Find

using it below.

  var onSelect = function (e) {var iframeUrl = 'report / maypage.aspx? RT = Myreport and RN = 'e.item.innerText; $ ('# Report displaypane') Attr ('src', iframeUrl); }; Var panelbar = $ ("# panelbar"). Kandopanelbar ({select: on-select});    

No comments:

Post a Comment