Jqgrid - 删除列上的操作 [英] Jqgrid - delete operation on a column

查看:79
本文介绍了Jqgrid - 删除列上的操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我有一个有关JQgrid列删除的问题。





我有一个HTML代码对于jqgrid,如下所示,有三列,第三列应该执行删除操作。








  $(&#"healthCenterList")。jqGrid({

  ;           url:'@ Url.Action(" GetAllHealthCenterDetail")',zh&b $ b             datatype:'json',

             mtype:'GET',

            colNames:[" Health Center Code","健康中心名称","行动"],&
            colMo del:[

            {

                name:" CenterCode",index:" Code",sortable:true,search:true,jsonmap:" CenterCode",width:70

             },b $ b            {

                name:" CenterName",index:" Name",sortable:true,sorttype:" text",search:true,jsonmap:" CenterName",width:70

   ;          },b
$
            {

                name:'Actions',index:'Actions',width:50,editable:true,sortable:false,formatter:'actions',

                 formatoptions:{

                    keys:true,

                    editbutton:false,&
                    delbutton:true,

                    editformbutton:false,&
                    delOptions:{url:'@ Url.Action(" RemoveHealthCenter"," Admin")'},

                     onSuccess:function(response){alert(response.Message); }
                }
            } b $ b





但它永远不会调用API"RemoveHealthCenter"API。 。不知道我哪里出错了。可以告诉我PLZ帮我这个..非常紧急。




解决方案

此论坛适用于C#代码问题,
jgGrid
看起来像第三方插件,您应该直接联系作者以获得更好的案例帮助。我看到他们已经有一个活跃的论坛
这里

Hi,


I've a question regarding the JQgrid column deletion .


I have a html code for the jqgrid a s follows with three columns and in which the 3rd column supposed to perform delete operation.



 $("#healthCenterList").jqGrid({
            url: '@Url.Action("GetAllHealthCenterDetail")',
            datatype: 'json',
            mtype: 'GET',
            colNames: ["Health Center Code", "Health Center Name", "Action"],
            colModel: [
            {
                name: "CenterCode", index: "Code", sortable: true, search: true, jsonmap: "CenterCode", width: 70
            },
            {
                name: "CenterName", index: "Name", sortable: true, sorttype: "text", search: true, jsonmap: "CenterName", width: 70
            },

            {
                name: 'Actions', index: 'Actions', width: 50, editable: true, sortable: false, formatter: 'actions',
                formatoptions: {
                    keys: true,
                    editbutton: false,
                    delbutton: true,
                    editformbutton: false,
                    delOptions: { url: '@Url.Action("RemoveHealthCenter", "Admin")' },
                    onSuccess: function (response) { alert(response.Message); }
                }
            }


but it never calls the API 'RemoveHealthCenter' API..not sure where i'm going wrong ..can smeone plz help me on this ..it is very urgent .


解决方案

This forum is for C# code issue, jgGrid looks like a third party plugin you should contact the author directly for a better assistance on your case. I'm seeing that they already have an active forum here.


这篇关于Jqgrid - 删除列上的操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆