Hello,
I've got a problem with a page inside a Kendo ui page...
consider this code please
That's my main page calling a window
Here's the content of the window I load
And the test controller
When I click on the button the main page is redirected to Index of TestWindow..... how can I fix this?
Another question how do I tell to the view inside the window to close itself after having done some update on the repository?
Thanks
I've got a problem with a page inside a Kendo ui page...
consider this code please
That's my main page calling a window
@{
ViewBag.Title = "Index";
}
<
h2
>
<
button
id
=
"button"
class
=
"k-button"
>openWindow</
button
></
h2
>
@Html.Kendo().Window().Name("winTest").LoadContentFrom("Index", "TestWindow").Modal(true).Visible(false).Title("Prova");
<
script
>
$(function () {
$("#button").click(function () {
$("#winTest").data("kendoWindow").open();
}
);
});
</
script
>
@{
ViewBag.Title = "Index";
Layout ="";
}
@using (Html.BeginForm("Inserisci"))
{
<
h1
>Some text</
h1
>
<
input
type
=
"submit"
value
=
"Click me"
class
=
"k-button"
/>
}
public class TestWindowController : Controller
{
//
// GET: /TestWindow/
public ActionResult Index()
{
return View();
}
public EmptyResult Inserisci()
{
return null;
//return EmptyResult
}
}
When I click on the button the main page is redirected to Index of TestWindow..... how can I fix this?
Another question how do I tell to the view inside the window to close itself after having done some update on the repository?
Thanks