Ejemplo n.º 1
0
        public Grid(IEnumerable <T> source)
        {
            Processors = new List <IGridProcessor <T> >();
            Source     = source.AsQueryable();

            Columns = new GridColumns <T>(this);
            Rows    = new GridRows <T>(this);
        }
Ejemplo n.º 2
0
        public Grid(IEnumerable <T> source)
        {
            Source     = source.AsQueryable();
            Query      = new NameValueCollection();
            Attributes = new GridHtmlAttributes();
            Processors = new HashSet <IGridProcessor <T> >();

            Columns = new GridColumns <T>(this);
            Rows    = new GridRows <T>(this);
        }
Ejemplo n.º 3
0
        public Grid(IEnumerable <T> source)
        {
            Source     = source.AsQueryable();
            FilterMode = GridFilterMode.Excel;
            Mode       = GridProcessingMode.Automatic;
            Attributes = new GridHtmlAttributes();
            Processors = new HashSet <IGridProcessor <T> >();

            Columns = new GridColumns <T>(this);
            Rows    = new GridRows <T>(this);
        }
Ejemplo n.º 4
0
        public Grid(IEnumerable <T> source)
        {
            Url  = "";
            Name = "";
            FooterPartialViewName = "";
            Source     = source.AsQueryable();
            FilterMode = GridFilterMode.Excel;
            Mode       = GridProcessingMode.Automatic;
            Attributes = new GridHtmlAttributes();
            Processors = new HashSet <IGridProcessor <T> >();

            Columns = new GridColumns <T>(this);
            Rows    = new GridRows <T>(this);
            Sort    = new GridSort <T>(this);
        }