Page 1 of 2

This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 2:05 am
by Crystal

If I change the value of the mobileselect component one of the two grids will be hidded but the function of hide() and show() seems don't work.

Image

The result likes this :
Image
The grid should be hidded but it always exists. So what's the reason?


This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 2:29 am
by Igor

Hello,

There is a space before component name, please try to delete it. You can also execute hide function on button click, because it can be some condition issue.


This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 2:44 am
by Crystal

Hello,
I have delete the space before component name. But the result is the same.


This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 2:58 am
by Igor

If you put this code on button click event :
pre
Appery('mobilelist_23').hide();
/pre
Does it hide mobile list component on button click?


This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 3:07 am
by Crystal

I don't want to add a button component. I would like to use select component to change the grid component's show and hide. Are there any better methods?


This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 3:17 am
by Igor

This is the simplest way how to check if your code is working. After you check this you can remove button. Also you can add
pre
alert(couponState);
/pre
before if, and
prealert("Test");/pre
inside if condition, to check if this code will execute.
Another way is debug app http://docs.appery.io/documentation/d...


This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 3:39 am
by Crystal

I have added this checking code and my code has executed successful. But the result is the same.What's the reason?


This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 3:41 am
by Igor

Can you share app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a? And tell us the steps how to reproduce this.


This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 4:18 am
by Crystal

I have shared my Map app. Press Test and then navigate to Test6 screen.Thanks!


This is someting wrong with show() and hide() of the Grid component.

Posted: Sun Jan 26, 2014 12:02 pm
by Alena Prykhodko

Hello Crystal,

Tested your app, this is what I see on Preview:

Image

Did you try clearing browser cache or test in other browser? Also try to recreate event with this code.