Modify searchPanes values

Modify searchPanes values

Konstantin_SalKonstantin_Sal Posts: 5Questions: 3Answers: 0

Hi! Thank you for an extremely usefull component.
I am trying to find out if there is a possibility to modify searchPanes values to make them text only, instead of <a> links like in table itself?

I pass data to table from Ajax script. For some columns it sends object data, containing {id, display}. Then it renders as for example:
{ "data": "T_DEAL", "title": "Сделка", "width": "55px", className: 'dt-body-left', render: function (data) { return '<a href="/crm/deal/details/' + data.id + '/" target=_blank>' + data.display + '</a>' }, searchPanes: {show: true} },

But these cells get to searchPanes exactly as they are rendered — with <a> tag.

So when I click on any of them in searchPane, I click on the link and get redirected to it, instead of normal behaviour — filtering table data.

I search for whole documentation articles and still couldn't find how to modify elements in searchPanes.

Can you help with that?

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.