Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

How to hide a button which is in a listitem?

I put a json array into a listitem. Image
The interface is like this Image
Then I want to hide the button. Image
But it's not effective.
How to hide a button which is in a listitem?

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

How to hide a button which is in a listitem?

Hi Crystal,

If you want to hide the button, on which you clicked, use this code:
precode
$(this).hide();
/code/pre

If you want to hide the whole grid component, inside which this button is, then this:
precode
$(this).parents("[name=gridName]").hide();
/code/pre
where 'gridName' - is the name of your grid component.

Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

How to hide a button which is in a listitem?

Hello,
Thanks,it works fine.

There I have another problems when I click this button.

Image

Then I want to hide or show this components.

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to hide a button which is in a listitem?

Hi,

Sorry, not sure we understand. Are these components in a Grid?
Use the above code (for grid).

Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

How to hide a button which is in a listitem?

Hello,
These components are in a Grid.

Image

But the button is in another Grid.
I want to click this button to show or hide components in another Grid.

Image

So how to do?

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

How to hide a button which is in a listitem?

Hello Crystal,

If you want to hide a whole grid you can use this code:

code $("[name='mobilegrid_4']").hide();
where mobilegrid_4 name of your grid /code

Return to “Issues”