Custom values in Search Panes
Custom values in Search Panes
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
This discussion has been closed.
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
valueto the full HTML andlabelto the string, this seems messy. Is there a way to setvalueto something like a data attribute on the <tr>? Like this:Or actually just setting a
data-labelon 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-searchattribute 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.orthogonaloption.Allan