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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

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

Hello,

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 ?

Regards

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. 
 
Regards, 
Francis Paul A. 


GUYOT
Replied On December 5, 2016 07:53 AM UTC

Hello,

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.

regards

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 
        }



 
Regards, 
 
Sasikala Nagarajan 
 


CONFIRMATION

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.

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

;