Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 15th, 2006, 08:43 AM
Authorized User
 
Join Date: Dec 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default right click mouse event

hi,

   i just want to know is there any mouse right click event on gridview so that we can have menu on right clcik on any row in gridview or right click event supported or not

plz help
thank in advance
senthil

 
Old December 15th, 2006, 01:47 PM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

i never come to know this
still you can go to msdn help to find further



thanks......
 
Old December 15th, 2006, 02:03 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi senthil,

It's not really want you asked for, but you may want to take a look at the ASP.NET Ajax Control Toolkit, with the HoverMenu in particular:

http://ajax.asp.net/ajaxtoolkit/Hove...HoverMenu.aspx

It presents a fully working extender control for pop up menus on GridView rows.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old December 16th, 2006, 05:39 AM
Authorized User
 
Join Date: Dec 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi imar

  thanks for the reply actually i came across those but i want to know whether right click mouse event is there or not on gridview in asp.net2.0 because one generally feels that the event is present in vb it should be there in asp.net also .plz reply

thanks
senthil










Quote:
quote:Originally posted by Imar
 Hi senthil,

It's not really want you asked for, but you may want to take a look at the ASP.NET Ajax Control Toolkit, with the HoverMenu in particular:

http://ajax.asp.net/ajaxtoolkit/Hove...HoverMenu.aspx

It presents a fully working extender control for pop up menus on GridView rows.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old December 16th, 2006, 07:32 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

There are no client side events available on the GridView. All events it fires are causing server side code to run.

However, you could hook into the GridView's RowCreated or RowDataBound events, find a reference to the table cells or rows that make up the GridView and write code for a client side event like onmousedown.

Search Google for "right-click javascript" for the client side code and for "GridView RowDataBound" for the server side if things.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old December 16th, 2006, 08:46 AM
Authorized User
 
Join Date: Dec 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok ill try it.....happy weekend:)






Similar Threads
Thread Thread Starter Forum Replies Last Post
determine mouse click position amr_qura Struts 0 June 26th, 2007 03:40 PM
Mouse right-click inoperable Neal Excel VBA 2 March 16th, 2007 05:32 AM
Capturing Mouse Click Event whiterainbow ASP.NET 1.0 and 1.1 Professional 1 December 8th, 2005 01:44 AM
detect mouse click off form vb certified Beginning VB 6 6 July 7th, 2005 07:55 PM
Mouse Click Event roniestein Access 4 December 11th, 2003 04:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.