TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ayesha Fathima
NA
184
29.8k
Give Hyperlink and color to Datatable column
Mar 20 2018 1:59 PM
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
},
Reply
Answers (
2
)
Data is coming in first column,while Adding row in datatable
How to use color picker?