コード例 #1
0
        public ActionResult ButtonsAndCheckboxifyHandle()
        {
            var t = Table();

            t.ButtonsAndCheckboxify();
            var handler = new PowerTablesHandler <Toy, Row>(t);

            handler.AddCommandHandler(Tutorial.Remove, RemoveSelected);
            handler.AddCommandHandler(Tutorial.Update, UpdateSelected);
            return(handler.Handle(Data.SourceData.AsQueryable(), ControllerContext));
        }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: andrei-mmn/PT
        public ActionResult HandleTable()
        {
            var handler  = new PowerTablesHandler <Toy, Row>(new Configurator <Toy, Row>().Configure());
            var statData = handler.ExtractStaticData <RequestStaticData>(ControllerContext);

            var req    = handler.ExtractRequest(ControllerContext);
            var shown  = req.GetShownColumns();
            var hidden = req.GetHiddenColumns();
            var form   = req.Form <AdditionalSearchData>();

            handler.AddCommandHandler("remove", Delete);
            handler.AddCommandHandler("download", DownloadSome);
            Thread.Sleep(1000);
            return(handler.Handle(Data.SourceData.AsQueryable(), ControllerContext));
        }