Good afternoon all,
Please see the following code:
@(Html.Kendo().Grid<
myVMNameHere
>()
.Name("nameOfMyGridHere")
.Columns(columns =>
{
columns.Bound(c => c.Title).Width(75);
columns.Bound(c => c.Category).Width(100);
})
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Single))
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("read_method_here", "name_of_controller_here"))
.PageSize(20))
.Events(e => e.Change("modal"))
.HtmlAttributes(new { style = "height:550px;width:100%;" })
)
Currently I have a script tags in my razor view. I need them to be gone, as the functions contained therein can be used by more than just one page. If I move the .Js function "modal" to another file, the function no longer fires. I have to keep the .Js code in the same file as the grid. How do I move the function(s) out to an external file so that I can make use of bundling, and name-spacing.
Additionally, I am attempting to style a telerik modal, but I have seen 0 documentation on how this is done. Can someone point me to the location of the doc(s), or example(s)?
Thanks.