Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, June 16, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Client (Pre-7.2)
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Client (Pre-7.2) | New ThreadView:  Search:  
 Author  Thread: Checkboxes for selecting...
Jeff Ballard
Posts: 326
 
Checkboxes for selecting...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Jul 06 11:40 AM
fiogf49gjkf0d
Ever notice how the cells containing the checkboxes used for selecting when choosing "Select Records to Save as Group" (as well as the header column) doesn't have the same look as the next cells? You know - things like borders, background colors, etc. don't match the other cells? I've fixed...it's some simple DHTML.

If you open groups.js and find the "addCheckBoxes()" function, below is a copy of it with changes to make the look and feel the same. I've put comments before and after the changed code (although the code itself isn't commented out). I also forced the "Expandable" property to "true" when selecting - it looks nicer to me than to have the check box sort of chopped off on the bottom.

Jeff

function addCheckBoxes(action) {
var e = getGrid();
var offset = 1;
/* JB - Set expandable False whenever selecting */
e.Expandable = 'FALSE';
/* JB - end expandable */
if (e.Expandable == 'FALSE') {
offset = 0;
}
if ((e.rows(0).cells(offset).innerHTML != 'Select') && (e.rows(0).cells(offset).innerHTML != 'Remove' )){
for (var i = 0; i < e.rows.length; i++) {
var r = e.rows(i);
if (r.insertCell(offset)) {
var c = r.cells(offset)
/* JB - Format the checkbox cell to match everything else */
c.runtimeStyle.borderRight = '1px solid ' + e.BoxLineColor; // BoxLineColor is the property set in the datagrid.htc file - use this to avoid hardcoding color.
c.runtimeStyle.borderBottom = '1px solid ' + e.BoxLineColor;
c.runtimeStyle.backgroundColor = e.ChromeLightColor;
/* JB - end format */
if (i>0) { // no checkbox for the header
c.innerHTML = '<input type="checkbox" name="isSelected" value="' + r.id + '">';
} else {
if (action == 'removeing') {
c.innerHTML = 'Remove';
c.runtimeStyle.width = '60px';
} else {
c.innerHTML = 'Select';
c.runtimeStyle.width = '45px';
}
}
c.runtimeStyle.verticalAlign = 'middle';
c.runtimeStyle.fontWeight = 'bold';
c.runtimeStyle.textAlign = 'center';
}
}
}
}
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/16/2024 11:50:58 AM