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

Assertion Failed: Length of elements and json must be the same!

2 Answers 137 Views
Menu
This is a migrated thread and some comments may be shown as answers.
caglar_ozkul
Top achievements
Rank 1
caglar_ozkul asked on 12 Nov 2008, 03:16 PM
Hi,

I am using Rad for ASP.NET Ajax Q3. My Menu Items have been created dynamically. And the exception above occurs.

Following is the stack trace. Theese lines run 3 times. and at the 3rd run throws an exception. (My menu contains 2 root items.)

_12a has a value for first and second run but is null for the last one. This is causing the exception I guess.


Telerik.Web.UI.RadMenuItem.callBaseMethod(

this,"_initialize",[json,_12a]);

 

 

return baseMethod.apply(instance, baseArguments);

 

this.set_element(_c8);

 

this

 

._element._item=this;


Kind regards.

 

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Nov 2008, 04:51 PM
Hello caglar_ozkul,

It is likely that this is a bug. Please open a formal bug report and provide additional info on the matter - steps to reproduce or a sample project. Thanks.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
caglar_ozkul
Top achievements
Rank 1
answered on 13 Nov 2008, 09:17 AM
Hi again,

I solved the problem. I was adding an item twice.

Kind Regards,
Caglar Ozkul
Tags
Menu
Asked by
caglar_ozkul
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
caglar_ozkul
Top achievements
Rank 1
Share this question
or