Posted
on Jul 8, 2011
(permalink)
Hi All,
I have a grid and onEdit action its opening the record in PopUp Mode. I'm using the EditorTemplate as well.
I have the TabStrip in that template where I want to load the content from partial view.
My Problem is I'm unable to access the properties of Model and hence cannot pass to my action.
Here is the code of my EditorTemplate View.
@model MyModel.BusinessObjects.Product
@{ Html.Telerik().TabStrip()
.Name("TabStrip")
.Items(tabstrip =>
{
tabstrip.Add()
.Text("Details")
.LoadContentFrom("_GetProductCodes", "Products", new { productId = @Model.Id, productType = 2}); // Here I cannot access the @Model.Id property
})
.SelectedIndex(0)
.Render();
}
Any idea how can I access the Model Proeprties in PopUp Window ?
Thanks in advance