Hi There ,
Iam trying to keep hyperlink and color based on some other column value.But it is not happening.Kindly suggest something.I wad able to give color and hyperlink individually but combining is not happening.
below is my sample code
- {
- data: "TR_INCIDENT_NO",
- defaultContent: "",
- targets: 2,
- "render": function ( data, type, full, meta ) {
- var colorflag=full.TR_READ_APP_STATUS;
- if(colorflag!=0)
- {
- return '<p class="colorforinc">'+'<a href="javascript:void(0)" onclick="setflagfunction()">'+data+'</a>'+'</p>';
- }
- else
- {
- return '<p class="negative">'+'<a href="javascript:void(0)" onclick="setflagfunction()">'+data+'</a>'+'</p>';
- }
- },
- visible: true
- },