Hi Ajay,
Multiple bar items can be added to the Context Menu during runtime through code and also their click event can be handled depending on the Bar Item.
The Popup Menu can be attached to the Form by setting the "SouceControl" property of the PopupMenu to the Form and display it using show method on MouseUp event. This excludes the usage of PopupMenusManager. Here is the code snippet.
PopupMenu1.SourceControl = this;
The second and recommended method to associate the Popupmenu with the form is, to use the following snippet.
popupMenusManager1.SetXPContextMenu(this, PopupMenu1);
No other control is needed to associate the context menu with the form.
A sample has been attached here and please let me know if this helps.
PopupCode.zip
Thanks for using Syncfusion Products.
Regards,
Purusothaman.R