This is a migrated thread and some comments may be shown as answers.

Kendo change event is triggering button click for child elements in table row

1 Answer 214 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 04 Dec 2020, 12:59 AM

I have a kendo combobox to determine what data is being called in the sql backend. The rows from the sql table are added to a table element below the combobox and one of those elements is a button that saves the data when edited. For some reason when i change to another client at times it will call the button event to save an item in the table but apply it to the next combobox value and leads to data being copied from one client to the other. Not sure how to being fixing this issue but I have isolated it to the change event via loggers.

here is some code : 

<form id="form1" runat="server" autocomplete="none"> <div id ="lineitemeditdiv" runat="server" style="padding:1%;"> Companies : <select id="clientbillingcompanies" runat="server"></select><br/> <script> window.onload = function() { //$('#clientbillingcompanies').chosen({change: onChangeKB}); $('#clientbillingcompanies').kendoComboBox(); $("#clientbillingcompanies").parent().css('width',"50%"); $("#clientbillingcompanies").data('kendoComboBox').input.attr('autocomplete','off'); $("#clientbillingcompanies").data('kendoComboBox').bind("change", onChangeKB) }; </script> <table id="lineitemtable" runat="server" > </table> <br /> <button id="submitlineitem" >Add</button> </div> </form>

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 07 Dec 2020, 01:12 PM

Hello David,

I am afraid that the provided information is not sufficient to suggest a possible cause of the issue. Could you please share more details about your implementation? Could you please provide more details about when the save button event is called? From the provided information I am not sure what is the relation between the ComboBox and the save button. Do you trigger the change event manually somewhere in your code? Could you please make sure that the save button is not clicked programmatically somewhere in your code? I will appreciate any detail regarding your scenario and the specific implementation at your end that you could send us. Thus, we could get a better idea and provide further assistance. 

Looking forward to your reply.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ComboBox
Asked by
David
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or