2/19/2025 3:58:13 PM
|
|
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!
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
|
|
|
|
Checkboxes for selecting...
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'; } } } } |
|
|
|
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!
|
|
|
|
|
|
|
|