GridEvents no longer work
Hi,
I have a test grid with a simple OnRecordClick event, when I refresh the data in the datasource the Event no longer works? Do I need todo something to make the event work after changing the datasource data?
<SfGrid DataSource="@DataStaticSource" AllowPaging="false" AllowSorting="true" AllowSelection="true"
RowHeight="24" AllowFiltering="true"
@ref="GRD_CliSearch" EnableAltRow="true" EnablePersistence="false"
...
<GridEvents OnRecordClick="ClickToPreview" TValue="ClientSearchFieldsClass" />
SIGN IN To post a reply.
3 Replies
RS
Renjith Singh Rajendran
Syncfusion Team
May 20, 2020 09:08 AM UTC
Hi Darren,
Greetings from Syncfusion support.
We tried to reproduce the reported problem by creating a sample with our latest version 18.1.0.53, but the OnRecordClick event triggers fine even after changing the datasource of Grid. We are attaching the sample and video demo for your reference. Please download them from the link below,
Video demo : https://www.syncfusion.com/downloads/support/directtrac/general/ze/recordclickevent109761430
We have used the codes in the below documentation for changing the data source for Grid.
If you are still facing the problem, then we need more details to further proceed on this. Kindly get back to us with the following details for better assistance.
- Share the sample which you have tried from your side, or reproduce the problem with the above attached sample and share with us for further analysis.
- Share the details regarding how your are changing the datasource.
- Share the details of script error if any occurred in browser console when changing the datasource or when clicking the record.
- Share the exact scenario or proper replication procedure.
- Share the details regarding total number of records you are binding to Grid.
And also we suggest you to bind the “OnActionFailure” event to Grid. This event will be triggered for every failure in Grid. Please share the details you get in the “args” of this event handler for further analysis.
Regards,
Renjith Singh Rajendran
DA
Darren
May 20, 2020 09:39 AM UTC
Hi,
Attachment: SynfusionTest_2b02944.zip
I've modified the sample project. Once you click on the button to change datasource the breakpoint on the RecordClick event no longer fires?
Regards,
Attachment: SynfusionTest_2b02944.zip
RS
Renjith Singh Rajendran
Syncfusion Team
May 21, 2020 09:47 AM UTC
Hi Darren,
Thanks for the sample.
We have confirmed this as a bug and logged defect report for the same “OnRecordClick event not triggered after Changing DataSource of Grid with EnableVirtualization”. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming Volume 2 release which is expected to be rolled out in the month of June, 2020.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.
Please get back to us if you need further assistance.
Regards,
Renjith Singh Rajendran
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
DA Darren
- May 19, 2020 04:43 PM UTC
- May 21, 2020 09:47 AM UTC