Select extension with rendered row

Select extension with rendered row

NewKNewK Posts: 1Questions: 1Answers: 0

Hello,

I'm trying to use Select extension in a table where some TD's are rendered with some kind of dom.

Let's say I have the following comulnsDef for column 1:

{
"render": function ( data, type, row ) {
return '<b>'+row['code']+'</b>';
},
"targets": 1
},

now, if a user select's the row on that column, the row will not be selected.

I've made a workaround to this problem by changing the render to something like this:
return '<b onclick="$(this).parent().click();" >'+row['code']+'</b>';

But it just doesn't feel right.

Am i missing something? Is this a bug or a feature?

Greetings

This discussion has been closed.