In a gridview, if I set the "filter" property of a column as an array, the filter will be rendered as a dropdown list by default, with the first option is an empty string meaning no filtering. How can I set to render the first option as "All" instead of an empty string?
Do you think this should be submitted as an issue at the tracker? BTW, what’s the difference between “empty” and “prompt” in the $htmlOptions argument?
Yes, I’ve read the docs. It seems to me that the only difference is that “the ‘empty’ option can also be an array of value-label pairs. Each pair will be used to render a list option at the beginning.”
If a string is given, they generate the same HTML. Seems that we can always use ‘empty’