HI,
I have to implement Autocomplete functionality on RadComboBox, functionality is working fine. But on page load, I am facing Javascript error. Like ‘Telerik.Webcontrols.RadComboBox’ is null or not an object.
I am currently using IE7 with VS2008. And Version 2010.3.1317.35 of Telerik.Web.UI.dll file.
RadComboBox Declaration:
<RadCmbBox:RadComboBox HighlightTemplatedItems="true" ID="radComboSelectBaseModule"
Skin="WindowsXP_IT" Height="100px" Width="200px" runat="server" SkinsPath="~/RadControls/Combobox/Skins"
AllowCustomText="true" MarkFirstMatch="true" AutoPostBack="true" Enabled="true"
Visible="true" TabIndex="1" OnSelectedIndexChanged="radComboSelectBaseModule_SelectedIndexChanged"
enableitemcaching="True" enableloadondemand="True" onitemsrequested="radComboSelectBaseModule_ItemsRequested" >
Javascript added for functionality:
<script type="text/javascript">
var prototype = Telerik.WebControls.RadComboBox.prototype;
var set_text = prototype.set_text;
var propertyChange = prototype._onInputPropertyChange;
prototype.set_text = function (value) {
this._skipEvent = 0;
set_text.call(this, value);
};
prototype._onInputPropertyChange = function () {
if (!event.propertyName)
event = event.rawEvent;
if (event.propertyName == "value") {
this._skipEvent++;
if (this._skipEvent == 2)
return;
propertyChange.call(this);
}
};
</script>
Please suggest if there is any other way to complete this functionality with version 2010.3.1317.35.
Thanks.