Custom values in Search Panes
Custom values in Search Panes
globalplane
Posts: 70Questions: 12Answers: 0
For my table, I would like the value shown in the Search Panes box to be different from the value shown in the table for each row. For example, the rows might show b, b, a, b, a, a, b
and the Search Panes would show the options Beginner
for b
and Advanced
for a
. Could someone tell me how this is done?
This question has an accepted answers - jump to answer
Answers
I think this example is what you are looking for.
Allan
Thanks, I think that'll work!
Hmm, so the actual data in the cells I'm working with is a bunch of HTML, and what I want in SearchPanes is a simple string. While I think it can be done with this method, by setting
value
to the full HTML andlabel
to the string, this seems messy. Is there a way to setvalue
to something like a data attribute on the <tr>? Like this:Or actually just setting a
data-label
on the <tr> with exactly what I want to show up in the SearchPanes for that column would be easier if that could be done.No sorry. It should be possible with
data-search
attribute on thetd
, but not on thetr
.Allan
I'm using AJAX, though. Could data-search be used in that case?
No, however, you can use orthogonal data in a different way with SearchPanes, through the
columns.searchPanes.orthogonal
option.Allan