Inline Editor display clickable link in an editField: false column
Inline Editor display clickable link in an editField: false column
Hello -- does anyone know how to add additional content to a non editable cell within the Inline Editor?
I have the Inline Editor setup and working great but in one column I'd like to add an html button/icon that is displayed after the database content such that the user can click to navigate to some url. Similar to the edit icon but instead of editing the field, I'd like the edit icon to popup a url in a new window.
{
name: "Database.Field" + <a href="url" target="_blank" class="btn-primary">Click</a>,
editField: false
}
Is something like this possible? Thanks!
Answers
Oh yea, this is easy, even within Inline Editor. Just use column render w/ a function:
{
data: "Deals.Contact", editField: false, width: "8%",
render: function (data, type, row, meta) {
return data + '<a href="http://cnn.com">Link</a>';
}
}