Ravi Wayne
Posts: 0
Joined: Sat Jul 20, 2013 7:20 pm

Making list data filter invisible

Hello,

I have a list with data filter on, When a record from the list is selected, I make the list invisible and make another list visible. The second list contains a list of menu options and no data filter. However, when I make the first list invisible, the data filter still remains visible. Any suggestions on making the data filter invisible?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Making list data filter invisible

The filter is probably another element in the DOM. Run JavaScript to hide it as well.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Making list data filter invisible

Hello,

Please try this code:
precode
Appery('mobilelist_46').prev("form.ui-listview-filter").toggle();
/code/pre
Replace "mobilelist_46" whith yours component name.

Ravi Wayne
Posts: 0
Joined: Sat Jul 20, 2013 7:20 pm

Making list data filter invisible

Thank you very much...this works.

Ravi Wayne
Posts: 0
Joined: Sat Jul 20, 2013 7:20 pm

Making list data filter invisible

Sorry spoke too early.

This works well when I am hiding my first list and displaying the second list. I have a back button that hides the second list and displays the first list. I added the same javascript to the back button to enable the datafilter to be visible when hiding the second list. However, it did not work.

Appery('mobilelist_46').prev("form.ui-listview-filter").toggle();

Suggestions?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Making list data filter invisible

You can use show() method
precode
Appery('mobilelist_46').prev("form.ui-listview-filter").show();
/code/pre

Return to “Issues”