RadListBox in RadPanelItem in MVC View

2 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 30 Oct 2009 Link to this post

    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.
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 04 Nov 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top