Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

List filter show/hide

Dear Appery,

i have a list component with the filter option turn on, when loading the page the list is set to visible false, however the filter text box is visible so i set the list to load without the filter and then, once i fill the list, i added this code:

code
Appery('lst_contact').prev("form.ui-listview-filter").show();
Appery('lst_contact').refresh();
/code

however i dont to make the filter text box visible using the above code... any thoughts?

as always - many many thanks in advance!
Best,
R.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

List filter show/hide

Hi, I'll update.

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

List filter show/hide

thank you very much!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

List filter show/hide

Your code doesn't make it visible because it's not on page. You can set Data Filter in List properties and on page Show do preAppery('lst_contact').prev("form.ui-listview-filter").hide();/pre and when you need show search field preAppery('lst_contact').prev("form.ui-listview-filter").show();/pre this way search field won't be shown while page loading, but you can show it when it's necessary.

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

List filter show/hide

Perfect!!!

Image

Return to “Issues”