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

Initializing RadMenuItem gives undefined error

1 Answer 39 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Suresh N
Top achievements
Rank 1
Suresh N asked on 05 Feb 2010, 12:00 PM
Hi,

      Right now I am replacing the old telerik control with new telerik control. In the old code,
     
var newItem = new RadMenuItem(); 

      After replacing with new telerik control, the above code is not working in the Javascript. It is giving as undefined error.

Thanks,
Suresh
http://www.sureshdevi.co.in

1 Answer, 1 is accepted

Sort by
0
Accepted
Schlurk
Top achievements
Rank 2
answered on 05 Feb 2010, 03:03 PM
Looking over the client-side API documentation it seems as if you might need to define it as a Telerik.Web.UI.RadMenuItem() instead of just a RadMenuItem.
Tags
Menu
Asked by
Suresh N
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or