I am creating the RadMenu from the code behind dynamically:
ie
SubMenuItem =
New Telerik.Web.UI.RadMenuItem
SubMenuItem.Text = "TEXT"
MainMenuItem.Items.Add(SubMenuItem)
SubMenuItem1.Text =
"Search "
SubMenuItem1.NavigateUrl = "~/SomeFile.aspx"
SubMenuItem.Items.Add(SubMenuItem1)
SubMenuItem1 =
New Telerik.Web.UI.RadMenuItem
SubMenuItem1.Text = "User Queries"
SubMenuItem1.NavigateUrl = "~/User/SomeFile.aspx"
SubMenuItem.Items.Add(SubMenuItem1)
When the menu renders it only shows 19 Items, I have 20. I have moved the bottom 2 around and it only shows the 19th. Is there a limit on the number of menu Items you can create, or am I missing something here?
| <radA:RadAjaxPanel id="radAjxPnl" runat="server" loadingpanelid="LoadingPanel1" > |
| </radA:RadAjaxPanel> |
| <rada:AjaxLoadingPanel id="LoadingPanel1" runat="server" transparency="30" backcolor="#E0E0E0"> |
| <asp:Image id="Image2" runat="server" AlternateText="Loading..." BorderWidth="0px" ImageUrl="~/RadControls/Ajax/Skins/Default/loading7.gif"></asp:Image> |
| </rada:AjaxLoadingPanel> |
| <root> | |
| <modules> | |
| <module name="RadEditorNodeInspector" /> | |
| </modules> | |
| <tools name="MainToolbar" dockable="true"> | |
| <tool name="Print" shortcut="CTRL+P"/> | |
| <tool name="AjaxSpellCheck"/> | |
| <tool name="FindAndReplace" shortcut="CTRL+F"/> | |
| <tool separator="true"/> | |
| <tool name="Cut" shortcut="CTRL+X"/> | |
| <tool name="Copy" shortcut="CTRL+C"/> | |
| <tool name="Paste" shortcut="CTRL+V"/> | |
| <tool name="PasteStrip"/> | |
| <tool separator="true"/> | |
| <tool name="Undo" shortcut="CTRL+Z"/> | |
| <tool name="Redo" shortcut="CTRL+Y"/> | |
| </tools> | |
| <tools name="InsertToolbar"> | |
| <tool name="ImageManager" shortcut="CTRL+G"/> | |
| <tool name="ImageMapDialog"/> | |
| <tool separator="true"/> | |
| <tool name="LinkManager" shortcut="CTRL+K"/> | |
| <tool name="Unlink" shortcut="CTRL+SHIFT+K"/> | |
| </tools> | |
| <tools> | |
| <tool name="Bold" shortcut="CTRL+B"/> | |
| <tool name="Italic" shortcut="CTRL+I"/> | |
| <tool name="Underline" shortcut="CTRL+U"/> | |
| <tool name="StrikeThrough" /> | |
| <tool separator="true"/> | |
| <tool name="JustifyLeft" /> | |
| <tool name="JustifyCenter" /> | |
| <tool name="JustifyRight" /> | |
| <tool name="JustifyFull" /> | |
| <tool name="JustifyNone" /> | |
| <tool separator="true"/> | |
| <tool name="Indent" /> | |
| <tool name="Outdent" /> | |
| <tool separator="true"/> | |
| <tool name="InsertOrderedList" /> | |
| <tool name="InsertUnorderedList" /> | |
| </tools> | |
| <symbols></symbols> | |
| <colors></colors> | |
| <paragraphs></paragraphs> | |
| <classes>Normal,H1,H2,H3</classes> | |
| <dialogParameters></dialogParameters> | |
| <languages></languages> | |
| <contextMenus></contextMenus> | |
| </root> |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.WebControls.GridClientChangesLoader.UpdateSelectedRows(GridTableView currTableView, String controlId, Int32 rowIndex) +62
Telerik.WebControls.GridClientChangesLoader.LoadSelectedRows(String selectedRows) +257
Telerik.WebControls.GridClientChangesLoader.LoadChanges(String argument, NameValueCollection collection) +1073
Telerik.WebControls.RadGrid.LoadPostData(String postDataKey, NameValueCollection postCollection) +428
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +661
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1194
If SessionObject.HasRole("DLPRJ") = False Then