Does Preselect work with 'No Data'?
Does Preselect work with 'No Data'?
HansWorth
Posts: 5Questions: 3Answers: 0
Utilizing Search Panes' Preselect and Buttons, I'm trying to preselect 'No Data' which appears in the filters whenever a blank or null value is passed to data tables. I've tried using '', 'null', null, 'No Data', undefined. None of them work.
Am I missing something?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @HansWorth ,
Yes it is possible take a look at this example. Because the
No Data
is in italics you have to include the html tags for these.This isn't intuitive though so I've raised an issue internally (DD-1899 for my reference) and will make a change to improve this. I'll report back here when there is an update. This will probably be at the end of next week.
Thanks,
Sandy
Thank you @sandy, I appreciate the help with this. I'll look forward to that update.
Hi @HansWorth ,
We've been talking about this internally and have decided that we aren't going to make a change for this. The reason is that the text that is displayed for
No Data
is configurable using SearchPanesi18n
object. This means that the text can be changed to whatever you want, and therefore any text needs to be preselectable - including html tags.I've updated the example I linked above to show how to change the text that is displayed for empty strings. You can access the
i18n
options throught SearchPanes settings object using the nightly builds.Thanks,
Sandy