Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Problem with hiding and showing elements

Hello,

I use fadetoggle function to show/hide some interface elements like GRID1 and GRID2 after clicking. It worked fine in previous Appery version but now it only hides GRID1 but does not show GRID2.

I have following script attached to CLICK event on GRID1 ELEMENT:

Image

this script passes variable, allowing to identify which list item was clicked, to another script responsible for hiding/showing list elements:

Image

Looks like now this script is only capable of hiding GRID1 but does not show GRID2 (as you can see fadetoggle function responsible for showing GRID2 is nested in fadetoggle responsible for hiding GRID1).

Steps to reproduce:
1) Open APP.
2) Enter "Banan" into search box and press ENTER.
3) Click on any table displayed in search results. You will see that it will hide this table but will not show the second element.

You can see how it should work in the previous version available here:

http://www.3mamcukier.pl/index.php/3mc

Can you please help me with that issue? My app is called 3MC and is shared with you.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Problem with hiding and showing elements

Hello Adam,

Sorry, I'm not sure that I could reproduce this issue correctly. When I clicked some table, the app freezes and redirects me to another page. Could you please clarify, do you have the same?

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Problem with hiding and showing elements

Hi Evgene,
Did you try to click on this table?
Image

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Problem with hiding and showing elements

Hello Appery
Any news on that issue?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Problem with hiding and showing elements

Hi Adam -

Sorry, we need some additional time and also we can't fully replicate the behavior that you have described.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Problem with hiding and showing elements

Thanks for your update IIlya. If you need more details to replicate the issue then let me know.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Problem with hiding and showing elements

Hi Adam,

You should use following js code to get root grid element:

pre

listItem.find("[name*='ArtGrid']").closest('[data-wrapper-for]');

/pre

So in your case correct code is:

pre

Code: Select all

 listItem.find("[name*='ArtGrid']").closest('[data-wrapper-for]').fadeToggle( "fast" , "swing", function(){listItem.find("[name*='EqGrid']").closest('[data-wrapper-for]').fadeToggle( "fast" , "swing");}); 

/pre

Regards.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Problem with hiding and showing elements

Yurii.
Brilliant support! You are the man :-))))

Return to “Issues”