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

_OnSubmitStatement Error

2 Answers 107 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Adam Macaulay
Top achievements
Rank 1
Adam Macaulay asked on 02 Sep 2008, 08:01 PM

Good Day,

I have been attempting to implement the RadTreeView with a Context Menu. When I implement the Context Menu, I get a javascript error. (_onSubmitStatementError is null or undefined)

If I switched my "ScriptManager.EnablePartialRendering = false" as per the following forum entry. (http://www.telerik.com/community/forums/thread/b311D-bdkeam.aspx) However, if there is another technology installed to the page that enables the script manager for me, versus me doing so, then the EnablePartialRenderingis set to true, and then the error returns.

I need some way to work around the EnablePartialRendering as I can't guarantee that I can control it.

Thank you.


If it helps here is the code I use to setup the menu.

RadMenuItem menuItem = new RadMenuItem();

myContextMenu.ID =

"contextMenu1";

menuItem.Text =

"show me a menu";

myContextMenu.Items.Add(menuItem);

MyRadTree.ContextMenus.Add(myContextMenu);

This occurs after the CreateChild Controls (Control.Add(RadTreeView)) is completed. The tree is populated before the above code is executed, however I have tried to enable this before as well.

Not all nodes are enabled to support context menu through the (EnableContextMenu).

No ID is specified in the node for the contextmenuid to run so it should run the first one, however, I have tried assigning one to them as well.

2 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 05 Sep 2008, 09:30 AM
Hi Adam Macaulay,

Please try with the latest release (Q2 SP1). You should not face such problems.

Regards,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Adam Macaulay
Top achievements
Rank 1
answered on 05 Sep 2008, 02:54 PM
That did it, much obliged.
Have a great day
Tags
TreeView
Asked by
Adam Macaulay
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Adam Macaulay
Top achievements
Rank 1
Share this question
or