Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public SlickRemoteView(SlickRemoteViewOptions options)
 {
 }
Exemplo n.º 5
0
 public SlickRemoteView(SlickRemoteViewOptions options)
 {
 }