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

Error while selecting a combo item in a webpart

3 Answers 48 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Hemangajit
Top achievements
Rank 1
Hemangajit asked on 08 Aug 2008, 05:55 PM
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.

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 11 Aug 2008, 12:28 PM
Hi Hemangajit,

We have never experienced this error before.
Can you please try the following:

1. Remove the MaxLength property and see if this helps
2. Download the latest release of RadComboBox - build 2008.2.723

I hope this helps.

All the best,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Hemangajit
Top achievements
Rank 1
answered on 11 Aug 2008, 02:47 PM
Hi Veskoni,
                   Thanks for your suggestion. I tried to check the same thing in a ASP.NET website and getting a similar kind of error. I want to post the zipped solution to you so that it can help you in reproducing the error. Can you please let me know how to upload a file in this site.

Hemangajit
0
Veselin Vasilev
Telerik team
answered on 11 Aug 2008, 03:19 PM
Hi Hemangajit,

To attach a zip file you need to open a new support ticket. This option is currently not available for you because your trial period has expired.
To lenghten the trial period you need to download again a trial version from our site. Please do so and then create a new support ticket.

Thanks

All the best,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Hemangajit
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Hemangajit
Top achievements
Rank 1
Share this question
or