Hi,
I am using the rad Combo box in a MOSS 2007 webpart. To increase the performence of the page, I set the EnableEmbeddedScripts property to false and referenced the scripts using ScriptReference in the ScriptManager. However I am getting a javascript error when I select a item of the combox. The error says:
Sys.ArgumentTypeException: Object of type 'Telerik.Web.Animation.DiscreteAnimation' cannot be converted to type '' Parameter name instance
The combo definition is as follows:
<telerik:RadComboBox ID="radComboSSNEINCode" EnableEmbeddedScripts="false" HighlightTemplatedItems="true" runat="server" AllowCustomText="true" MarkFirstMatch="true" MaxLength="1" DataTextField="Code" DataValueField="Name">
<CollapseAnimation Duration="200" Type="OutQuint" />
<ExpandAnimation Duration="200" />
<ItemTemplate>
<%#DataBinder.Eval(Container,"Value")%>
</ItemTemplate>
</telerik:RadComboBox>
The script references are added as follows:
protected override void OnInit(EventArgs e)
{
if (ScriptManager.GetCurrent(this.Page) == null)
{
ScriptManager rsm = new ScriptManager();
rsm.ID = "ScriptManager1";
rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/Core.js"));
rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/AnimationScripts.js"));
rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/NavigationScripts.js"));
rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/RadComboBoxScripts.js"));
this.Page.Form.Controls.Add(rsm);
}
base.OnInit(e);
}
Please let me know if am missing some javascripts. These are the scripts defined in the documentation.
I am using the rad Combo box in a MOSS 2007 webpart. To increase the performence of the page, I set the EnableEmbeddedScripts property to false and referenced the scripts using ScriptReference in the ScriptManager. However I am getting a javascript error when I select a item of the combox. The error says:
Sys.ArgumentTypeException: Object of type 'Telerik.Web.Animation.DiscreteAnimation' cannot be converted to type '' Parameter name instance
The combo definition is as follows:
<telerik:RadComboBox ID="radComboSSNEINCode" EnableEmbeddedScripts="false" HighlightTemplatedItems="true" runat="server" AllowCustomText="true" MarkFirstMatch="true" MaxLength="1" DataTextField="Code" DataValueField="Name">
<CollapseAnimation Duration="200" Type="OutQuint" />
<ExpandAnimation Duration="200" />
<ItemTemplate>
<%#DataBinder.Eval(Container,"Value")%>
</ItemTemplate>
</telerik:RadComboBox>
The script references are added as follows:
protected override void OnInit(EventArgs e)
{
if (ScriptManager.GetCurrent(this.Page) == null)
{
ScriptManager rsm = new ScriptManager();
rsm.ID = "ScriptManager1";
rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/Core.js"));
rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/AnimationScripts.js"));
rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/NavigationScripts.js"));
rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/RadComboBoxScripts.js"));
this.Page.Form.Controls.Add(rsm);
}
base.OnInit(e);
}
Please let me know if am missing some javascripts. These are the scripts defined in the documentation.