This question is locked. New answers and comments are not allowed.
hi,
I have a nasty issue.
This is a grid with a panel bar in a client template
The ID is used in the name of Panelbar, in the name of a div and in the action to load the content of the panels
All seems t be working well, the panel bar and the div get the right name, when hovering over the panel the url looks OK.
But when selecting the panel something else is posted back to the controller. Instead of "1" (the value of the ID) %3C is posted back,
I can create an action which accepts a string, the content of that string is always "<".
Is there a work around ? Am I doing something wrong ?
Using this client template as a details view works perfectly. But I don't want a details view, I want a template column...
kind regards
Peter
I have a nasty issue.
This is a grid with a panel bar in a client template
@(Html.Telerik().Grid<
ListHelperDiagnoseSet
>().Name("DiagnoseSets")
.Columns(cols =>
{
cols.Bound(m => m.Id).Hidden(true);
cols.Bound(m => m.OpDatum).Title("Datum");
cols.Bound(m => m.Id).ClientTemplate(
"<
table
><
tr
><
td
>" +
Html.Telerik().PanelBar().Name("DiagnoseSet<#= Id #>").Items(i =>
{
i.Add().Text("As1")
.LoadContentFrom("DiagnoseOpAs1", "Diagnose", new {idDiagnoseSet = "<#= Id #>"});
i.Add().Text("As2")
.LoadContentFrom("DiagnoseOpAs2", "Diagnose", new {idDiagnoseSet = " <#= Id #>"});
i.Add().Text("As3")
.LoadContentFrom("DiagnoseOpAs3", "Diagnose", new {idDiagnoseSet = " <#= Id #>"});
i.Add().Text("As4")
.LoadContentFrom("DiagnoseOpAs4", "Diagnose", new {idDiagnoseSet = " <#= Id #>"});
}
)
.ToHtmlString()
+ "</
td
><
td
><
div
id = 'DSMtree<#= Id #>'></
div
></
td
></
tr
></
table
>");
}
)
Html.Telerik().PanelBar().Name("DiagnoseSet<#= Id #>").Items(i =>
{
i.Add().Text("As1")
.LoadContentFrom("DiagnoseOpAs1", "Diagnose", new {idDiagnoseSet = "<#= Id #>"});
But when selecting the panel something else is posted back to the controller. Instead of "1" (the value of the ID) %3C is posted back,
I can create an action which accepts a string, the content of that string is always "<".
Is there a work around ? Am I doing something wrong ?
Using this client template as a details view works perfectly. But I don't want a details view, I want a template column...
kind regards
Peter