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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Use ToggleButton to hide a div content Client-Side

Thread ID:





127586 Nov 25,2016 11:26 AM UTC Dec 6,2016 05:13 PM UTC ASP.NET Web Forms 3
Tags: ToggleButton
Asked On November 25, 2016 11:26 AM UTC


i am able to hide a content div with server side event but it is slower than client side.

Can you show me how achieve it ?


Francis Paul Antony Raj [Syncfusion]
Replied On November 28, 2016 12:59 PM UTC

Hi Nicolas, 
Thanks for contacting Syncfusion Support. 
We have checked with your requirement (“server side event is slower than client side”). As far we have analyzed, this is a common behavior of Server-Side event. We have ensured with ASP.NET default Button too and here also server side event slower than client side event. 
If we misunderstood your requirement, please get back to us with more information regarding this. 
Francis Paul A. 

Replied On December 5, 2016 07:53 AM UTC


whath i need is to know how to hide an element client-side with a toggle button. Now i must use a server-side function and it's slow.

Thank you for help.


Sasikala Nagarajan [Syncfusion]
Replied On December 6, 2016 05:13 PM UTC

Hi Nicolas, 

Thanks for the update, 

You can use of our existing client side event “ClientSideOnClick” with toggle button to achieve your requirement, 

Please refer the below code example, 

<ej:ToggleButton ID="ToggleButton" runat="server" Size="Large" ClientSideOnClick="tglebtnClick" DefaultText="Save" ActiveText="Delete"></ej:ToggleButton> 

In script section of your page, 

function tglebtnClick(e) {
// here you can hide the element 

Sasikala Nagarajan 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon