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

Change a custom editor value via code and launch "save" event

1 Answer 236 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 31 Jan 2017, 03:44 PM

Hi

 

I have a kendo grid that can be changed user method and I have and option that automatically sets the values from a certain column if have a certain conditions.

 

My problem actually is when I do the automatic option, I need to launch the save event, because it validates certain data via server, and I need to access to my custom editor (is a combobox) and change his value and then launch the save event. The problem is if I change the combobox via code, the save event never launches. What I do is:

 

1. Click the "td" that contains the combobox

2. Change the combobox value

3. Click in another place to launch the save event

4. Nothing happens, that column on the grid is actually empty

 

Any ideas what can I do?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 02 Feb 2017, 12:40 PM
Hello Oscar,

I can assume that the issue occurs because when the value is changed programmatically the change event of the ComboBox is not fired which respectively will not call the save event.

I can suggest to manually trigger the change event after the value is set:

http://docs.telerik.com/kendo-ui/api/javascript/ui/combobox#methods-value

I hope this will help to achieve the desired result.

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Oscar
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or