Reinitialize or check to see if menu is initalized

I am having an issue where I initialize the context menu on a grid, and it works but I have another function on the page that when clicked hides the grid, when I bring the grid back the menu no longer works, I am thinking that maybe re-initializing it will fix my problem.

How would I reinitialize the menu? If there is no "reinitialize" function than how can I check to see if the menu has been made before I destroy it and make another?

I know I can destroy it but I cant figure out how to tell if it is initialized first?


if(order.contextmenu("initialized"))     order.contextmenu("destroy"); 


Category: jquery Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.230 (s). 12 q(s)