trouble adding context menu to Ajax Technique 1

This post has 4 replies

Not Ranked
Posts: 2
EdKennedy Posted: Tue May 12, 2009 @ 10:27 AM
I have a page based on the Live-Demo Ajax Technique 1 where the tree and the grid are both in UpdatePanels.

I am trying to add a context menu to the grid. Everything seems fine at first, but when I mouse-over the context menu that pops up, I get error an error saying 'Scroll' is not an object. Other errors are 'SlideInProgress' is not an object and 'GroupElement' is not an object.

Do I have to do something special to implement the context menu within an updatePanel? The Grid - ContextMenu demo looked easy enough, but it's not inside an update panel.
Top 10 Contributor
Posts: 865
sberkovitz Posted: Tue May 12, 2009 @ 1:00 PM
What version of WebUI are you running? I seem to remember this being an issue back in the 2006 or 2007 releases.
Steven Berkovitz MBC Development Ltd. & OrderDynamics Corporation http://www.mbccs.com http://www.orderdynamics.com
Not Ranked
Posts: 2
EdKennedy Posted: Wed May 13, 2009 @ 4:11 AM
UI Frameword 2009.1 for .NET
Top 75 Contributor
Posts: 62
shanny1775 Posted: Thu May 14, 2009 @ 1:38 PM
Im having this same problem which introduced in 2009.1 but my grid is inside of user control which is inside of a callback.
Top 500 Contributor
Posts: 23
glynjones Posted: Thu Sep 1, 2011 @ 2:35 PM

I'm using 2011.1 version and this is STILL a problem. If you have a context menu inside an UpdatePanel you will have problems. I have a context menu on a treeview node. There is a onNodeSelect event, which has a postback. If the node is right clicked, this event fires and the context menu displays, but then starts firing the errors. The contextMenu.hide() doen't hide the menu

function trvMain_onNodeSelect(sender, eventArgs) {

contextMenu1.hide();

 

 

var selectedNode = trvMain.get_selectedNode();

 

 

var id = selectedNode.get_id();

 

 


if
(id > 0) {

// store id in hidden field here

 

<%=ClientScript.GetPostBackEventReference(btnNodeSelected,string.Empty)%>

}

}

 



This is a fairly basic requirement and I can't believe that this is still not fixed. I posted on this nearly a year ago, and it's been a problem for long before that. If I didn't fix my bugs in a timely fashion, I'd be out of business. Come on CA - sort it out. This is not the first 'long term' that we have found that is not getting any attention!

Page 1 of 1 (5 items)