<div class="k-rtl">
@(Html.Kendo().Grid<BookStore1.Models.Author>
()
.Name("ParameterGrid")
.Columns(column =>
{
column.Bound(c => c.Id).Hidden();
column.Bound(c => c.FullName).Title("Arabic Desc");
column.Command(com =>
{
com.Edit().UpdateText("حفظ").Text("تعديل").CancelText("إلغاء").HtmlAttributes(new { type = "button", @class = "btn-basic ", });
com.Destroy().Text("حذف").HtmlAttributes(new { type = "button", @class = "btn-basic ", });
}).Width(200);
}).HtmlAttributes(new { style = "height:500px" })
//.ToolBar(toolbar =>
//{
// toolbar.ClientTemplateId("<a class='k-button' href='" + Url("Create", "Authors1") + "/test' " + ">Add product</a>" + "<a class='k-button' href='" + Url.Action("Index", "Authors1") + "/test' " + ">Other button</a>");
//})
.ToolBar(toolbar => toolbar.Create().Text("إضافة جديدة").HtmlAttributes(new { type = "button", @class = "btn-basic ", }))
.Editable(editable => editable.Mode(GridEditMode.PopUp))
.Events(e => e.Edit("NewRecord"))
.Scrollable()
.Sortable()
.Selectable()
.Filterable(f => f.Extra(false)
.Operators(opertor => opertor
.ForString(str => str.Clear()
.Contains("يحتوي على"))))
.Pageable
(p => p
.ButtonCount(10)
.Refresh(true)
)
.DataSource
(dataSourec => dataSourec
.Ajax()
.Events(e => e.Error("Error_Handler"))
.Model(m => m.Id(i => i.Id))
.Read(read => read.Action("Read", "Authors1"))
.Create(create => create.Action("Create", "Authors1"))
)
)
.Window()
.Name("Details")
.Title("test")
.Visible(false)
.Modal(true)
.Draggable(true)
.Width(300)
)
</div>
<div id="test"></div>
<script>
$('input[name="FullName"]').keypress(function () {
var input = $(this).val();
$.ajax({
type:"post",
url: "@Url.Action("Search","Authors")",
datatype: "html",
data: { input: input },
success: function (data) {
$("#test").html(data);//// this is work fine but I want to return partial view in kendo window here
here I need to return partial view in kendo window here
},
error: function () {
}
})
});
</script>