Using different name than column header name for SearchBuilder drop-down

Using different name than column header name for SearchBuilder drop-down

bablazabablaza Posts: 9Questions: 3Answers: 0

I need to include some HTML (a " ") and an asterisk in my column headers. SearchBuilder shows the characters " " in the field select for the one column, and of course shows the asterisk for the other.

Is there a way to tell SearchBuilder to use a different string for the column name in the field select?

Answers

  • bablazabablaza Posts: 9Questions: 3Answers: 0

    OK, so the blanks there are for a non-breaking space " "

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @bablaza ,

    SearchBuilder takes the column titles and strips out any html that it finds. There isn't an official way to set custom names for columns though I'm afraid.

    That being said it may be possible to come up with some kind of hack using jQuery, but no nothing we would provide as standard.

    Thanks,
    Sandy

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    One option is to do something like this - it should do the trick. It's rewriting the table's header on each draw.

    Colin

  • bablazabablaza Posts: 9Questions: 3Answers: 0

    Appreciate the responses. There's so much that's customizable that I thought I would ask. Currently using jQuery to rewrite the <th>, but I think I'll try the redraw suggestion, as it's better bound to the table.

This discussion has been closed.