Unble to capture clear event in Autocomplete input when data is binded progamatically

Hi Team,

I am working on a requirement where I have multiple auto-complete components inside grid's editTemplates.

On change of one auto-complete component, I am filling data of the whole row.
But if value is programmatically set to an autocomplete it's not triggering "OnChange" event when user clicks on clear button.

In the below attached video, when user selects dropdown item from item code column, we are setting value of item description column and other dependent columns programmatically. In this case, when the user clicks the clear button of item description, I am not able to capture "OnChange" event.
But after selecting data from the "Item description" column then I am able to capture "OnChange" event when clear button is clicked.

Please help in resolving this issue. Where I need to clear row data on click of autocomplete clear button




Attachment: AutocompleteClearBtnEventNotworking_e17349bb.zip

5 Replies

SP Sureshkumar P Syncfusion Team September 6, 2022 09:48 AM UTC

Hi Cyril,

We have validated the sample based on your requirement; we cannot replicate the reported issue on our end. we have added the validated sample below.

Find the sample link: https://codesandbox.io/s/xenodochial-morning-yczph3

If you have faced the same issue, then please replicate the reported issue on the above sample and revert us with a detailed issue replication procedure. These details will help us to provide an exact solution as earlier as possible.

Regards,

Sureshkumar P



CO Cyril Ovely September 6, 2022 01:53 PM UTC

Hi SureshKumar,

Unfortunately, the sample provided was not helpful. I have attached a demo project along with video for reference.

In the below attached video, when user selects dropdown item from item code column, we are setting value of item description column and other dependent columns programmatically. In this case, when the user clicks the clear button of item description, I am not able to capture "OnChange" event.
But after selecting data from the "Item description" column then I am able to capture "OnChange" event.


Thanks & Regards,
Cyril Ovely


Attachment: UnableToCaptureChangeOnDescriptionTemplate_6539743a.zip


SP Sureshkumar P Syncfusion Team September 7, 2022 09:58 AM UTC

Hi Cyril,

When we validate the reported issue using your attached sample, we can not run the sample on our end. please check the facing error screenshot below.

Find the screenshot here:

Please attach the runnable sample here to validate the sample and update the exact solution as earlier as possible.

Regards,

Sureshkumar P



CO Cyril Ovely September 7, 2022 01:28 PM UTC

Hi Suresh Kumar P,

Just downloaded from another system and tried. It is working as expected. Can you please recheck and if the issue still exists on your side, please set up a call so that I can showcase the issue.


Thanks & Regards,
Cyril Ovely



SS Shereen Shajahan Syncfusion Team September 8, 2022 05:20 AM UTC

Hi Cyril,


We have created a ticket for this query. Kindly have further follow-ups in that ticket.


Regards,

Shereen



Loader.
Up arrow icon