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

Stop CHANGE event on Databound??!

3 Answers 323 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 15 Nov 2012, 04:49 PM
Hi All,

I have a ui selection widget made up of a 1. radiobutton group, 2. kendoDropDownList, 3. Another kendoDropDownList

Each control is dependent on the latter. the dropdownlists have default dataitems  with "Select..." options.

I cannot get this to work because of the chain of events that are fired. I mean.. it works but change events are fired on databound which causes screwd up calls to the corresponding datasource read functions.

I need this sequence of events to happen.

1. User changes radiobuttongroup value
2. dropdownlist #1 ds read is called and result is bound
3. dropdownlist #1 is ENABLED and dataitem at index 0 is selected programmatically. dropdownlist #2 ds read is NOT called yet.
4. User changes dropdownlist#1 value, dropdownlist value#2 ds read is called
5.  dropdownlist #2 is ENABLED and dataitem at index 0 is selected programmatically. CHANGE EVENT for dropdownlist #2 IS NOT FIRED
6. User changes dropdownlist #2 and change event for it is fired.

If user selects new value from radiobuttongroup the following should happen. ddl#2 is disabled with dataitem at index 0 selected. NO EVENTS should be fired for ddl#2

Based on how the events work for both the datasource and the ddl i cannot make this work. I have observed strange behavior where changing the radiobuttongroup causes the next mouse click ANYWHERE on the page, including empty elements causes the change event of the ddl#1 is fired?? 

Is there some way to have a dropdownlists ds read be called without the dropdownlist's change event being fired??

Is there some way to programatically change the selected value/dataitem of the dropdownlist without the  the dropdownlist's change event being fired??

Thanks!




3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 19 Nov 2012, 09:34 AM
Hello Rich,

It is a little unclear how the described functionality has been implemented. Could you please elaborate more on the problem? A working test sample will be great.

As a side note the DropDownList/ComboBox widget will not raise change event if its value is set though the value/select method.

All the best,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ryan
Top achievements
Rank 1
answered on 13 Mar 2017, 05:48 PM

since this is #1 google result, let me rephrase question.

 

it is common to _not_ want change events on the grid , *until* after it has been databound.  the data binding in itself may do things that cause change events, however, these events are somewhat artificial b/c the user did not change anything, thus ;

how do we " surpress change events on grid + until after databind ( or rather complete grid initialization is complete ) ?

 

Thanks!

0
Ianko
Telerik team
answered on 16 Mar 2017, 12:16 PM

Hello Ryan,

The thread here is 5 years old and I am not sure whether it is still actual. Also, it addresses topics about DropDownList and ComboBox. Therefore, I am not sure how Kendo Grid is related. 

As your question is rather related to Kendo Grid, I suggest you posting a new forum post with your question and provide more details about the situation you have.

Regards,
Ianko
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
General Discussions
Asked by
Rich
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Ryan
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or