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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to capture a button click?

Thread ID:

Created:

Updated:

Platform:

Replies:

144479 May 8,2019 11:25 AM UTC May 25,2019 10:57 AM UTC Blazor 9
loading
Tags: Button
Andrew
Asked On May 8, 2019 11:25 AM UTC

I using the EjsButton and trying to capture the "click" event. However the following code does not work:

<EjsButton onclick="@OnClick" IconCss="e-btn-sb-icons e-add-icon" CssClass="e-small e-round" IsPrimary="true"></EjsButton>

At runtime I get:

Object of type 'Syncfusion.EJ2.RazorComponents.Buttons.EjsButton' does not have a property matching the name 'onclick'

What code do I need to react to the button being clicked, please?

Jesus Arockia Sankaran S [Syncfusion]
Replied On May 9, 2019 05:35 AM UTC

Hi Andrew,  
 
Thanks for contacting Syncfusion support.  
 
We have already working on this “Native Event Support for Syncfusion Blazor components” and it will be available in Volume 1, 2019 SP1 scheduled on May 15, 2019.  
 
Please get back to us if you require any further assistance on this. 
 
Regards, 
Jesus Arockia Sankaran S 


Andrew
Replied On May 10, 2019 07:53 AM UTC

So currently your blazor button control provides no way to react to a click? What use is the button if the user cannot click on it and have something happen?

Or am I missing something...

Jesus Arockia Sankaran S [Syncfusion]
Replied On May 14, 2019 12:39 PM UTC

Hi Andrew,  
 
We strongly regret for the inconvenience caused.  
 
We will fix this issue and it will be available in our Volume 2, 2019 release scheduled in June 27, 2019.  
 
Regards,  
Jesus Arockia Sankaran S 


Dmitrik
Replied On May 15, 2019 12:50 AM UTC

Could you please elaborate more on that.
I just looking on the code samples, seems to be none of the components I have seen, have any events like onselect or onclick. 

This is kinda funny that documentation didn't show this upfront and everybody have to find out that themselves. 
What is the difference between vol.1 and vol.2? 

Thanks 


Gelai
Replied On May 15, 2019 01:34 PM UTC

I must say i agree with Dmitrik.

Why bother delivering and "advertising" on a button that cannot be clicked ?

Will it be part of a future DLC ? (Electronic Arts joke inside)

Jesus Arockia Sankaran S [Syncfusion]
Replied On May 16, 2019 12:46 PM UTC

Hi All,  
 
We are on this with high priority and It will be available in May 22, 2019. We appreciate your patience until then.  
 
Regards,  
Jesus Arockia Sankaran S 


Jesus Arockia Sankaran S [Syncfusion]
Replied On May 21, 2019 11:36 AM UTC

Hi All,  
  
Thanks for your patience. 
  
We are glad that, we have completed the Native Event support for our Syncfusion Blazor components and it is available for download now. Also, we have prepared a demo sample for your reference which could be downloaded from the below link.  
  
  
Please get back to us if you require any further assistance in this.  
 
Regards, 
Jesus Arockia Sankaran S 


Andrew
Replied On May 23, 2019 01:50 PM UTC

Tested this and it works in my environment. Thank you!

Jesus Arockia Sankaran S [Syncfusion]
Replied On May 25, 2019 10:57 AM UTC

Hi Andrew,  
 
Thanks for your update. 
 
Regards, 
Jesus Arockia Sankaran S 


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.

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

Live Chat Icon For mobile
Live Chat Icon