This question is locked. New answers and comments are not allowed.
I have a grid with edit button.
Inside the editor template I have a nested grid retrieved as follows:
Contained in editor template:
% Html.Telerik().TabStrip()
.Name(string.Format("TabStrip{0}", Html.CreateUID()))
.SelectedIndex(0)
.Items(tabstrip =>
{
tabstrip.Add().Text("Groups").LoadContentFrom("GridGroup", "Section", new { Id = Model.Id });
}).Render();
%>
Model.Id is always 0. (I understand this due to timing of rendering of template - takes default values)
At runtime telerik binds the input controls - is there a way i can hook into that mechanism to also update the url to LoadContentFrom?
if not:
What approach can I use to bind the dataItem being bound to the editor template to the route needed by the tabstrip?
Inside the editor template I have a nested grid retrieved as follows:
Contained in editor template:
% Html.Telerik().TabStrip()
.Name(string.Format("TabStrip{0}", Html.CreateUID()))
.SelectedIndex(0)
.Items(tabstrip =>
{
tabstrip.Add().Text("Groups").LoadContentFrom("GridGroup", "Section", new { Id = Model.Id });
}).Render();
%>
Model.Id is always 0. (I understand this due to timing of rendering of template - takes default values)
At runtime telerik binds the input controls - is there a way i can hook into that mechanism to also update the url to LoadContentFrom?
if not:
What approach can I use to bind the dataItem being bound to the editor template to the route needed by the tabstrip?