Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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)
 {
 }
Exemple #5
0
 public SlickRemoteView(SlickRemoteViewOptions options)
 {
 }