context menu on webpage
-
hi I am showing my data on webpage thro gridview. I want to add context menu in it. I dont know how to do it. I m doing my project in vs2005 using C# lang. plz help guys.
-
hi I am showing my data on webpage thro gridview. I want to add context menu in it. I dont know how to do it. I m doing my project in vs2005 using C# lang. plz help guys.
Hi bipin, Following Microsoft Cutting edge article shows good example with source code on context menu but only limitation is, this context menu is running in IE not in firefox. http://msdn.microsoft.com/msdnmag/issues/05/02/CuttingEdge/
Regards, Swap.
-
Hi bipin, Following Microsoft Cutting edge article shows good example with source code on context menu but only limitation is, this context menu is running in IE not in firefox. http://msdn.microsoft.com/msdnmag/issues/05/02/CuttingEdge/
Regards, Swap.
swap i know that link... but they used readymade option overthere called contextmenu.. how can i get that menu? i hve not seen that in my gridview property.. i think that contextmenu is custom control.
-
swap i know that link... but they used readymade option overthere called contextmenu.. how can i get that menu? i hve not seen that in my gridview property.. i think that contextmenu is custom control.
Bipin, You are right, it is custom control. But to put it in to gridview you can add it in to cell during databind method. But it will not feasible to put it in all cell, so if you have functionality to put it in one column or particular cell than it will work. and if you want to add to whole grid than you need to develop custom control and for that javascript context menu will help you, this menu attaches with any html element in case of gridview(table), and popup on right click of that particular html element. http://www.dynamicdrive.com/dynamicindex1/jsdomenu/index.htm
Regards, Swap.
-
Bipin, You are right, it is custom control. But to put it in to gridview you can add it in to cell during databind method. But it will not feasible to put it in all cell, so if you have functionality to put it in one column or particular cell than it will work. and if you want to add to whole grid than you need to develop custom control and for that javascript context menu will help you, this menu attaches with any html element in case of gridview(table), and popup on right click of that particular html element. http://www.dynamicdrive.com/dynamicindex1/jsdomenu/index.htm
Regards, Swap.
thanks man.. ur absolutly right.. i m thinking abt javascript... i think it is little bit lenthy process.. i wil see the link . thanks
-
thanks man.. ur absolutly right.. i m thinking abt javascript... i think it is little bit lenthy process.. i wil see the link . thanks
Hi Bipin, I just surf around and got this link on codeproject itself may be it helps you. http://www.codeproject.com/aspnet/dynamenu.asp
Regards, Swap.