protected virtual SlickRemoteViewOptions GetViewOptions() { var opt = new SlickRemoteViewOptions(); opt.IdField = GetIdFieldName(); opt.SortBy = GetDefaultSortBy().As <string[]>(); if (!UsePager()) { opt.RowsPerPage = 0; } else { opt.RowsPerPage = 100; } return(opt); }
protected virtual SlickRemoteViewOptions GetViewOptions() { var opt = new SlickRemoteViewOptions(); opt.IdField = GetIdFieldName(); opt.SortBy = GetDefaultSortBy().As <string[]>(); if (!UsePager()) { opt.RowsPerPage = 0; } else if (element.HasClass("responsive-height")) { opt.RowsPerPage = J(Window.Instance).GetWidth() < 768 ? 20 : 100; } else { opt.RowsPerPage = 100; } return(opt); }
protected virtual SlickRemoteViewOptions GetViewOptions() { var opt = new SlickRemoteViewOptions(); opt.IdField = GetIdProperty(); opt.SortBy = GetDefaultSortBy().As <string[]>(); if (!UsePager()) { opt.RowsPerPage = 0; } else if (element.HasClass("responsive-height")) { opt.RowsPerPage = J(Window.Instance).GetWidth() < 768 ? 20 : 100; } else { opt.RowsPerPage = 100; } opt.GetItemMetadata = (item, index) => this.GetItemMetadata(item.As <TItem>(), index); return(opt); }
public SlickRemoteView(SlickRemoteViewOptions options) { }