Events are not firing

I have numerous razor pages with various controls that have events - for example, grids with "load" set in order to hook up a ForeignKeyAdaptor. Most of them are working fine.

However, on a couple pages, none of the controls will fire any of there events. One such page has a checkbox, a dropdown, and a grid (see below). None of the events are firing. On the checkbox, I'm able to debug into it and see that the "_trigger" function is being called, but doesn't end up calling the assigned function "onWaiveChange(args)".

Is there anything obvious that could cause every control on a page to not be able to fire it's events? I've compared the grid tags between a working one and a non-working one, and can't see any differences. Also, I can't get it to reproduce in a sample app.

Thanks for the help...

brian

          <ej-check-box id="waiveDelivery"
                        change="onWaiveChange"
                        value="@Model.Order.WaiveDeliveryCharge" />
 
              <ej-drop-down-list id="deliverTo"
                             change="onDeliverChange"
                             datasource="@Model.Customers"
                             value="@Model.Order.DeliverToID"
                             watermark-text="Select customer (optional)"
                             width="300px">
            <e-drop-down-list-fields id="CustomerID" value="CustomerID" text="Name" />
          </ej-drop-down-list>

<ej-grid id="GridContainer"
         allow-resize-to-fit="true"
         allow-sorting="true"
         allow-text-wrap="true"
         is-responsive="true"
         enable-responsive-row="true"
         show-summary="true"
         load="onLoad">
...



3 Replies

PK Prem Kumar Madhan Raj Syncfusion Team October 24, 2017 12:28 PM UTC

Hi Brian, 
 
Thanks for contacting Syncfusion support. 
 
We have analyzed your query “Events not firing on a page having checkbox, grid and dropdown list controls”. We have created a sample placing checkbox, grid and dropdown list controls in a same page and the events are working fine at our end. So, kindly ensure the below mentioned cases to resolve the issue at your end. 
1.     Check whether events are binded with wrong event names. 
2.     Check whether the events have been prevented within any private functions. 
 
For your convenience, we have created a simple sample with the mentioned controls binding events and attached in the below link. Please check it. 
 
 
If the issue is not solved at your end, please get back to us with the below mentioned information so that we can provide an exact solution for your query. 
1.     Essential Studio version. 
2.     jquery version. 
3.     Browser (with version). 
4.     Console errors (if any). 
 
Regards, 
Prem Kumar. M 



RB R Brian Lindahl October 24, 2017 02:40 PM UTC

It turns out that there was a syntax error elsewhere in the script block (something unrelated to the EJ controls) that, of course, invalidated the entire block. Problem solved. :)


b



PK Prem Kumar Madhan Raj Syncfusion Team October 25, 2017 12:28 PM UTC

Hi Brian, 
  
Thanks for the update. We are happy to hear that the issue is resolved at your end. Please get back to us if you need any further assistance on this. 
Regards, 
Prem Kumar. M  


Loader.
Up arrow icon