jQuery dataTables - 如何从fnRender函数中呈现id

时间:2014-01-08 11:24:08

标签: jquery jquery-datatables

在dataTables中,如何从fnRender函数

呈现id
function filltable() {
        var oTable = $('#table').dataTable({
            "bProcessing": true,
            "sAjaxSource": "AjaxHandler.aspx?action=get&getmethod=activity",
            "sAjaxDataProp": "aaData",
            "aoColumns": [
                { "mDataProp": "DesignationID" },
                { "mDataProp": "DesignationName" },
                { "mDataProp": "DesignationShortName"},
                { "mDataProp": null,
              "sTitle": "Activity-Action",
              "bSearchable": false,
              "bSortable": false,
              "fnRender": function (oObj) {
                  return "<a  href='#' name='lnkEditActivity' id='" + oObj.aData["DesignationID"] + "' class='sepV_a' title='Edit'><i class='icon-pencil'></i></a> <a href='#' title='Delete' name='lnkDeleteActivity' id='" + oObj.aData["DesignationID"] + "'><i class='icon-trash'></i></a>";
              }
          }
    ]
        });
  }

如何从fnRender功能中获取ID ...我无法从fnRender功能中获取ID ..help

0 个答案:

没有答案