Page 1 of 1

List filter show/hide

Posted: Tue Nov 19, 2013 9:28 am
by Ram

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.


List filter show/hide

Posted: Tue Nov 19, 2013 11:16 am
by Maryna Brodina

Hi, I'll update.


List filter show/hide

Posted: Tue Nov 19, 2013 11:17 am
by Ram

thank you very much!


List filter show/hide

Posted: Tue Nov 19, 2013 1:00 pm
by Maryna Brodina

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.


List filter show/hide

Posted: Tue Nov 19, 2013 5:13 pm
by Ram

Perfect!!!

Image