easy uigridview 효과 구현

3515 단어 GridView
포그라운드 태스크:
  //  

        function FillStep(flowID) {



            $('#tbStepList').datagrid({

                url: "/System/ApproverStepManage2?flowID=" + flowID, // url(json )

                striped: true,

                singleSelect: true,

                loadMsg: " , ...",

                rownumbers: true,

                columns: [[

            { field: 'C_ID', title: ' id', hidden: true, sortable: true },

            { field: 'C_TypeName', title: ' ', width: 100, sortable: true },

            { field: 'C_Type', title: ' ', hidden: true, width: 100, sortable: true },

            { field: 'C_ApproverName', title: ' ', width: 100, sortable: true },

            { field: 'C_Approver', title: ' ', hidden: true, width: 100, sortable: true },

            { field: 'C_PositionName', title: ' ', width: 100, sortable: true },

            { field: 'C_Position', title: ' ', hidden: true, width: 100, sortable: true },

            { field: 'C_AllowFinalName', title: ' ', width: 100, sortable: true },

            { field: 'C_AllowFinal', title: ' ', hidden: true, width: 100, sortable: true },

            { field: 'C_NowStep', title: ' ', width: 100, sortable: true },

            { field: 'modify', a: true, disable: true, title: ' ',

                formatter: function () {

                    return '<a href="javascript:void(0);"onclick="UpdateStep()"> </a>';

                }

            },

            { field: 'del', a: true, disable: true, title: ' ',

                formatter: function () {

                    return '<a href="javascript:void(0);"onclick="DelStep()"> </a>';

                }

            }

          ]]

            });

        }

백그라운드:
 [HttpPost]

        public JsonResult ApproverStepManage2(Guid flowID)

        {

            ApproverStepModel model = new ApproverStepModel();

            List<ApproverStepModel> list = bllStep.GetApproverStep(flowID, model.Pager);

            return Json(list, JsonRequestBehavior.AllowGet);

        }

좋은 웹페이지 즐겨찾기