I've created a custom command as follows.
columns.Command(command =>
{command.Edit();
command.Custom(
"Details").Text("Line Details").Action("Product", "Home").DataRouteValues(v => v.Add(c => c.SKU).RouteKey("selectSID"));}
);
Corresponding Controller action
public ActionResult Product(string selectSID){
var result = IProductRepository.One(p => p.SID == selectSID);
if (result == null)
{return RedirectToAction("Error");}
else
return PartialView(result);
}
This all works but my Partial View is opened as a full page in the existing window, how can I open this as a popup?
I've tried using JS and kendowindow to open the popup and this does work but I can't see how to pass the SKU from the selected line in the grid so I see my error page loaded in the popup window.
This is my partial view
@model TestKendo.Models.Product
<fieldset>
<div class="display-field">
@Html.DisplayFor(model => model.Description)
</div>
<img src="..\120571.jpg" />
</fieldset>
<p> @Html.ActionLink("Back to List", "Order") </p>
Any and all help appreciated, i've got this far from browsing the forums and sample apps.