|
|
@ -11,6 +11,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section MainContent{
|
|
|
|
@section MainContent{
|
|
|
|
|
|
|
|
<div class="grid-container">
|
|
|
|
@{Html.Telerik().Grid<SeriesModel>().Name("Grid")
|
|
|
|
@{Html.Telerik().Grid<SeriesModel>().Name("Grid")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.DataKeys(keys => keys.Add(p => p.SeriesId))
|
|
|
|
.DataKeys(keys => keys.Add(p => p.SeriesId))
|
|
|
@ -18,7 +19,6 @@
|
|
|
|
.Select("_AjaxSeriesGrid", "Series")
|
|
|
|
.Select("_AjaxSeriesGrid", "Series")
|
|
|
|
.Update("_SaveAjaxSeriesEditing", "Series")
|
|
|
|
.Update("_SaveAjaxSeriesEditing", "Series")
|
|
|
|
.Delete("_DeleteAjaxSeriesEditing", "Series"))
|
|
|
|
.Delete("_DeleteAjaxSeriesEditing", "Series"))
|
|
|
|
|
|
|
|
|
|
|
|
.Columns(columns =>
|
|
|
|
.Columns(columns =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
columns.Bound(o => o.Title)
|
|
|
|
columns.Bound(o => o.Title)
|
|
|
@ -41,8 +41,13 @@
|
|
|
|
.Editable(editor => editor.Mode(GridEditMode.PopUp))
|
|
|
|
.Editable(editor => editor.Mode(GridEditMode.PopUp))
|
|
|
|
.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(true))
|
|
|
|
.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(true))
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate("<div style=\"width:95%\"><#= Overview #></div>"))
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate("<div style=\"width:95%\"><#= Overview #></div>"))
|
|
|
|
.ClientEvents(clientEvents => clientEvents.OnEdit("grid_edit"))
|
|
|
|
.ClientEvents(clientEvents => { clientEvents.OnEdit("grid_edit");
|
|
|
|
|
|
|
|
clientEvents.OnDataBinding("grid_bind");
|
|
|
|
|
|
|
|
clientEvents.OnDataBound("grid_bound");
|
|
|
|
|
|
|
|
})
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
|
|
|
|
<span class="grid-loader"><img src="@Url.Content( "~/Content/Images/Loading.gif" )" alt="Loading"/> Loading...</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
@ -55,6 +60,14 @@
|
|
|
|
.center();
|
|
|
|
.center();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function grid_bind(args) {
|
|
|
|
|
|
|
|
$('.grid-container').children('.grid-loader').stop().css("top", "0px").fadeIn('slow');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function grid_bound(args) {
|
|
|
|
|
|
|
|
$('.grid-container').children('.grid-loader').stop().fadeOut('slow');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function openSeasonEditor(seriesId, seriesName) {
|
|
|
|
function openSeasonEditor(seriesId, seriesName) {
|
|
|
|
windowElement = null;
|
|
|
|
windowElement = null;
|
|
|
|
windowElement = $.telerik.window.create({
|
|
|
|
windowElement = $.telerik.window.create({
|
|
|
|