【问题标题】:pass multiple parameter to jtable将多个参数传递给 jtable
【发布时间】:2015-07-28 14:25:36
【问题描述】:

这是我的 jtable 初始查询。我没有将所有代码放在这里。它工作正常。

  $('#PersonTableContainer').jtable({
            title: 'Cheque Details',
            paging: true, //Enables paging
            pageSize: 10, //Actually this is not needed since default value is 10.
            sorting: true, //Enables sorting
            defaultSorting: 'AutoTrNo ASC', //Optional. Default sorting on first load.
            actions: {
                listAction: '/frmAccChequeClear.aspx/TransationList'

            },

但我的问题是我想在这一行发送参数

listAction: '/frmAccChequeClear.aspx/TransationList'

我的参数场景是这样的。

DropDown1:选择 GLCODE ->>>> DropDown2:选择 SLCODE

这里给出了两个下拉列表。两者都是级联 dorpdown 第二个取决于第一个。

当我选择第一个下拉菜单时,它应该采用下拉数据值字段

它应该将参数传递给这个

 actions: {
        //listAction: '/frmAccChequeClear.aspxTransationList'
        '/frmAccChequeClear.aspx/CheqeList?glcode=' +dropdown.value
        },

当我选择第二个时,两个下拉值都应该传递给这些 参数

 actions: {
    //listAction: '/frmAccChequeClear.aspx/TransationList' 
     '/frmAccChequeClear.aspx/CheqeList?glcode=' + $("dropdown1").val() + "&slcode=" + $("dropdown2").val(),
     },

【问题讨论】:

    标签: jquery asp.net jtable webmethod jquery-jtable


    【解决方案1】:

    这对我有用:

    listAction : 'http://localhost:8080/springapp/employee/getEmployeescustom?action=list&param1=123&param2=ganesh&param3=bangalore
    

    【讨论】:

      猜你喜欢
      • 2016-07-18
      • 2013-01-07
      • 2011-10-10
      • 2013-09-15
      • 2010-10-09
      • 2012-09-05
      • 2017-06-14
      • 2018-08-12
      • 2015-11-14
      相关资源
      最近更新 更多