Hello,
I am currently converting kendo external template to CSP template. Below is the code for the CSP template
Html.Kendo().Template().AddComponent(tabStrip => tabStrip.TabStrip()
.Name("ed_${data.TabGuid}")
.SelectedIndex(0)
.Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
.HtmlAttributes(new { gridName = "Grid" + id)
.Events(ev => ev.Activate("tabEvent"))
.Items(items => items.Add().Text("TabName")
.LoadContentFrom(Url.Action("ControllerName", "ActionName",
new
{
param= "${data.Property1}",
param1= false,
param2= false,
param3= false
})))
);
The current URL forming is considering ${data.Property1} as a string in the content URL formed in the kendo deferred script.
Is there any way that it could consider ${data.Property1} as a template literal inside contentUrl?
I am currently converting kendo external template to CSP template. Below is the code for the CSP template
Html.Kendo().Template().AddComponent(tabStrip => tabStrip.TabStrip()
.Name("ed_${data.TabGuid}")
.SelectedIndex(0)
.Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
.HtmlAttributes(new { gridName = "Grid" + id)
.Events(ev => ev.Activate("tabEvent"))
.Items(items => items.Add().Text("TabName")
.LoadContentFrom(Url.Action("ControllerName", "ActionName",
new
{
param= "${data.Property1}",
param1= false,
param2= false,
param3= false
})))
);
The current URL forming is considering ${data.Property1} as a string in the content URL formed in the kendo deferred script.
Is there any way that it could consider ${data.Property1} as a template literal inside contentUrl?