This question is locked. New answers and comments are not allowed.
Hi all
I am trying to dynamically change the "contentUrl:" content after it has been created via LoadContentFrom.
The content below loads fine the FIRST time:
The HTML results are :
Every time I click on a Master/Detail Grid the data changes and I need to use the new data and insert it into the
contentUrl above since the Javascript code is "static". Not sure if that is possible. The goal is to re-create the chart using the new updated data plus display it into a new window. (sounds like mission impossible).
So, one thing I was trying to do was to use the same approach as below
I was trying to pass the same parameters to the Chart:
Anyways, been working on this for days.....
Thank you!
I am trying to dynamically change the "contentUrl:" content after it has been created via LoadContentFrom.
The content below loads fine the FIRST time:
<div id="linkBottomGraph-region">@{ Html.Telerik().Window() .Name("WindowBottomGraph") .Visible(false) .Buttons(b => b.Refresh().Maximize().Close()) .LoadContentFrom(Url.Action("_ChartBottom", "NormalMode", new { initialDate = ViewData["initialDate"], name = ViewData["name"] })) .Width(1200) .Height(400) .Render();}</div>jQuery('#WindowBottomGraph').tWindow({modal:false, contentUrl:'/NormalMode/_ChartBottom?initialDate=10%2F18%2F2011&name=JOHN', draggable:true, resizable:true, minHeight:250, minWidth:250, maxHeight:1500, maxWidth:1500});So, one thing I was trying to do was to use the same approach as below
function onDataBinding_Grid(e) { e.data = $.extend(e.data, { initialDate: initialDate, name: name });}I was trying to pass the same parameters to the Chart:
function onDataBinding_Chart(e) { e.data = $.extend(e.data, { upgradeDate: upgradeDate, vhoName: vhoName });}Anyways, been working on this for days.....
Thank you!