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

RadListBox in RadPanelItem in MVC View

1 Answer 56 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 30 Oct 2009, 06:40 PM
Hello,

When I have a RadListBox in a RadPanelItem in an MVC view (note: which is also data bound), I get an JS error related to this method in ControlItem client-side class

_initialize: function(json, element)
    {
     
    },

json is null.  Why would that be?  So when it looks for attributes, it is throwing an exception.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 04 Nov 2009, 08:44 AM
Hello Brian Mains,

This error can occur if the RadScriptManager is declared before the RadListBox control. Please verify this is not the case. In MVC applications it is always best to put your RadScriptManager after all other RadControls.

Regards,
Albert,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ListBox
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or