≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Filter on rows with input or combo boxes
Filter on rows with input or combo boxes
puraminy
Posts: 11
Questions: 0
Answers: 0
November 2013
edited November 2013
in
General
Among these huge extensions, I don't know why I can't find filtering on the values of inputs or comboboxes inside the cells of the rows.
please help.
Replies
puraminy
Posts: 11
Questions: 0
Answers: 0
November 2013
edited November 2013
Ok, afture tooking a lot of hours I found the solution below,
you can use
mRender
to specify the selected value of the select box for filtering
[code]
"mRender": function ( data, type, full ) {
if (type === "filter")
{
node = $.parseHTML(data);
var val = $(node).find("select option:selected").text();
return val;
}
return data;
}
[/code]
This discussion has been closed.
Replies
you can use mRender to specify the selected value of the select box for filtering
[code]
"mRender": function ( data, type, full ) {
if (type === "filter")
{
node = $.parseHTML(data);
var val = $(node).find("select option:selected").text();
return val;
}
return data;
}
[/code]