CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Creating "Select All" button on editable grid

Print topic Send  topic

Author Message
Brandy
Posted: 04/13/2004, 6:35 AM

If i have an editable grid page with a max of 25 records, What code would i put on a button so that when i click it, it would check all check boxes on a certain field of an editable grid, so i could delete all the files at one time.


Thanks
Brandy
DonB
Posted: 04/13/2004, 11:51 AM

If you have javascript enabled, this will do it:

http://www.gotodon.com/ccbth/Features/Kbase.asp?find=uncheck


--
DonB

http://www.gotodon.com/ccbth


"Brandy" <Brandy@forum.codecharge> wrote in message
news:6407becbc12a74@news.codecharge.com...
> If i have an editable grid page with a max of 25 records, What code would
i put
> on a button so that when i click it, it would check all check boxes on a
> certain field of an editable grid, so i could delete all the files at one
> time.
>
>
> Thanks
> Brandy
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

peterr


Posts: 5971
Posted: 04/13/2004, 1:42 PM

Have you tried using the Grid Builder with the "Delete" option? It creates such checkbox automatically.
If this is not what you need, please explain the difference in the functionality you're trying to implement.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Brandy
Posted: 04/13/2004, 1:47 PM

I wanted to be able to click the Select All button to put a check in all the Delete boxes on the page at one time, so i don't have to manually check delete for each individual record that displays on a given page.

Thanks for your reply
Brandy
peterr


Posts: 5971
Posted: 04/13/2004, 2:22 PM

You should be able to use some JavaScript for this:
http://www.google.com/search?q=javascript+check+all+checkboxes
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
cycno
Posted: 02/09/2005, 4:11 AM

Standard javascript found on the net wont do since each checkbox in the grid has a different name.

Sorry Peter..
Nicole

Posts: 586
Posted: 02/09/2005, 4:23 AM

Hello,
I’m using this code to select all Delete checkbox with one click. I assigned it to onClick event of a Link:
  
function select_all() {  
 init<form_name>Elements();  
 for(var j = 0; j < <form_name>Elements.length-<form_name>EmptyRows; j++){  
 <form_name>Elements[j][bugsDeleteControl].checked = true;  
}  
replace "<form_name>" keyword with a real form name.

_________________
Regards,
Nicole
View profile  Send private message
SteveG

Posts: 56
Posted: 03/17/2005, 6:00 PM

I keep trying this code, but without much luck. Any chance someone can give me a little more explanation about the actual syntax used in incorporating it? I keep getting "Error: document.frm has no properties"

Quote DonB:
If you have javascript enabled, this will do it:

http://www.gotodon.com/ccbth/Features/Kbase.asp?find=uncheck


--
DonB
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.