Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #4
0
 public SlickRemoteView(SlickRemoteViewOptions options)
 {
 }
Beispiel #5
0
 public SlickRemoteView(SlickRemoteViewOptions options)
 {
 }