?
Solved

Creating a shift-click type feature to a web page GridView Control

Posted on 2008-02-05
6
Medium Priority
?
465 Views
Last Modified: 2012-05-05
I have a gridview control inside an ascx page.  In this gridview control are several columns and rows, and based on permissions and settings, may or may not be selectable.

What I would like to do is, IF the column is selectable (boolean value to determine), have a way for the end user to do a "shift-click" feature that will select all items between the first item selected and the last item selected in the grid.  This gridview can have anywhere from 10-1000 rows per page, and as many pages as needed.

I know that somewhere in the javascript code is a client side click event because the column is a templated image item and will change its image based on if its selected or not.

What would be the easiest way to accomplish this?  I can do code behind, or javascript, it doesn't matter to me.

Thanks in advance for your assistance!
0
Comment
Question by:ericlockshine
  • 3
5 Comments
 
LVL 5

Expert Comment

by:jsthursday
ID: 20826327
go into windows and go to set program defaults or set key macros...easist way to do this
0
 

Author Comment

by:ericlockshine
ID: 20826399
huh???
I'm talking about a web page, and it is not necessarily in windows (it could be anything).
0
 

Author Comment

by:ericlockshine
ID: 20832216
I am going to ask this to be closed.  I figured out how to get this done.  
0
 

Accepted Solution

by:
ericlockshine earned 0 total points
ID: 20835030
Using Javascript, I was able to determine the shiftkey status and was able to toggle between checked/unchecked through script.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 20925640
Closed, 500 points refunded.
Netminder
Site Admin
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question