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

How to capture a button click?

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?

9 Replies

JA Jesus Arockia Sankaran S Syncfusion Team 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 



AN Andrew 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...


JA Jesus Arockia Sankaran S Syncfusion Team 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 



DM Dmitrik 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 



GE Gelai 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)


JA Jesus Arockia Sankaran S Syncfusion Team 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 



JA Jesus Arockia Sankaran S Syncfusion Team 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 



AN Andrew May 23, 2019 01:50 PM UTC

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


JA Jesus Arockia Sankaran S Syncfusion Team May 25, 2019 10:57 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon