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!
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!