We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Hide nested accordion item

Hi,

I want hide/show accordion items in function user role. But the property visible doesn't work

accPRL.Visible = User.IsInRole("Repositorio");

For now, I remove the items, but I prefeer hide the items

accMain.Items.Remove(accMain.Items[3]);

I attach an example for test



Attachment: WebApplication21_d82fb612.zip

5 Replies

KS Kalai Selvi Rajendran Syncfusion Team January 25, 2016 12:17 PM UTC

Hi Manolo,

We have checked your issue in our end. We suggest you to achieve the reported scenario in client side instead of server side by following code snippet.

<code>

$("#<%=accMain.ClientID%>").find("h3:nth-child(3)").css("display", "none");

</code>

Please refer to the below link for the sample

http://www.syncfusion.com/downloads/support/forum/121760/ze/WebApplication211557026075

Regards

Kalai Selvi



MA Manolo January 25, 2016 02:42 PM UTC

I need hide the accordion items in function role's user, so i need do it in code behind.




AP Arun Palaniyandi Syncfusion Team January 28, 2016 01:27 PM UTC

Hi  Manolo

We will give the support for “Hiding the nested accordion item in server-side” as you have requested. So we have created an incident in your account kindly follow up the incident for further queries.  

Please let me know if any concerns.

Regards,
Arun P


MA Manolo January 28, 2016 02:41 PM UTC

Ok, thanks


AP Arun Palaniyandi Syncfusion Team January 29, 2016 10:13 AM UTC

Hi Manolo,

Thanks for the update.


Please let us know if you have any other concern.

Regards,
Arun P 


Loader.
Live Chat Icon For mobile
Up arrow icon