Is there a way to dinamicly add search filter to listview?
I'm making some app with different lists, I load data from JSON and display it, so I'm injecting listviews dinamicly with out search filter, by default.
What I want is to add search button and display search filter on click.
I tried modifying listview by
.attr('data-filter',true)
and
.prop('data-filter',true),
and triggering create on parent div, and refreshing listview after modifying, but noting happens.
Any ideas?