This question is locked. New answers and comments are not allowed.
The 2011.1.315 release has a breaking change with the ComboBox control. The Id for the controls visible element has changed, so any JavaScript using that Id breaks. For example $('#MyComboBox').focus(); worked in version 2010.3 but is now broken in version 2011.1.315.
In version 2010.3 when the ComboBox html is rendered the controls visible div container was given the id based on the controls name and the hidden input's id has -value appended to it. For example:
Now with version 2011.1.315 the rendered html no longer has an Id on the containing div element and the Id of the hidden input changed (the appended "-value" was removed):
Now all JavaScript that may have referenced one of these elements is now broken. For my case its mostly .focus() calls, but I'm sure there could be other developers running into this issue for other things as well.
Ideally we would be able to script against the ComboBox's jquery object but there isn’t a focus event according to the documentation. http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-combobox-client-api-and-events.html, .
Is this a permanent change or will it revert back to the same naming style as version 2010.3?
In version 2010.3 when the ComboBox html is rendered the controls visible div container was given the id based on the controls name and the hidden input's id has -value appended to it. For example:
<div class="t-widget t-dropdown t-header" id="MyComboBox"> <div class="t-dropdown-wrap t-state-default"> <span class="t-input">Option 1</span> <span class="t-select"> <span class="t-icon t-arrow-down">select</span> </span> </div></div><input id="MyComboBox-value" name="MyComboBox" style="display:none" type="text" value="0">Now with version 2011.1.315 the rendered html no longer has an Id on the containing div element and the Id of the hidden input changed (the appended "-value" was removed):
<div class="t-widget t-dropdown t-header"> <div class="t-dropdown-wrap t-state-default"> <span class="t-input">Option 1</span> <span class="t-select"> <span class="t-icon t-arrow-down">select</span> </span> </div> <input id="MyComboBox" name="MyComboBox" style="display:none" type="text" value="0" /></div>Now all JavaScript that may have referenced one of these elements is now broken. For my case its mostly .focus() calls, but I'm sure there could be other developers running into this issue for other things as well.
Ideally we would be able to script against the ComboBox's jquery object but there isn’t a focus event according to the documentation. http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-combobox-client-api-and-events.html, .
Is this a permanent change or will it revert back to the same naming style as version 2010.3?