searching not working when merged two columns with serverside true.
searching not working when merged two columns with serverside true.

{
title: 'Name',
data: 'full_name', // what should i place here
render: function (data, type, row) {
if (type === 'display') {
return row.first_name + ' ' + row.last_name;
}
},
defaultContent: '',
orderable: true,
searchable: true
},
This discussion has been closed.
Answers
when i place first_name in place of full_name it only searches with first name not with last name. what possible solution can be i will be very much thankful.
Hi @mawais2080 ,
As there's no data source for that line,
just use
Cheers,
Colin
@colin when i did that i get no record and when looking at network i see this error
Exception Message:↵↵SQLSTATE[42S22]: Column not found: 1054 Unknown column 'members.' in 'where clause' (SQL: select count(*) as aggregate from (select '1' as
row_count
frommembers
wheremembers
.organization_id
= 15554 andmembers
.organization_id
is not null and (LOWER(members
.member_id
) LIKE %mike% or LOWER(members
.``) LIKE %mike% or LOWER(members
.contact_no
) LIKE %mike% or LOWER(members
.date_of_birth
) LIKE %mike%)) count_row_table)"The error is saying
members
is an unknown column, but that wasn't mentioned in your earlier posts - could you post your client and server side code, please.@colin its resolved thanks