hyperlink column in data table

hyperlink column in data table

sameersameer Posts: 2Questions: 0Answers: 0
edited September 2011 in General
is it possible to create hyperlink column in data table witout any concern with sql

Replies

  • sameersameer Posts: 2Questions: 0Answers: 0
    If it possible then plz give me reply ?
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    yes. http://www.datatables.net/ref#fnRender

    [code]
    /* Using aoColumnDefs */
    $(document).ready(function() {
    $('#example').dataTable( {
    "aoColumnDefs": [
    {
    "fnRender": function ( oObj ) {
    return 'oObj.aData[3]+'';
    },
    "aTargets": [ 0 ]
    }
    ]
    } );
    } );
    [/code]

    oObj is an object with the following parameters:
    - int:iDataRow - the row in aoData
    - int:iDataColumn - the column in question
    - array:aData - the data for the row in question
    - object:oSettings - the settings object for this DataTables instance
This discussion has been closed.