3.2.0

Scrollbar problem with commercial version - CPU 100%

There are times it seems the grid is caught in the middle of whether to display scrollbars, and it continuously refreshes, causing the CPU to max out at 100%. The grid appears to flicker while it's happening. Sometimes adjusting the width of a column will make it stop. It also seems like it may have something to do with the precise height of the grid. Any ideas?

Tim Koehler
November 19,
Tim, yes, I believe it is possible, but I could not replicate the problem. Do you have any example which I can look at?
Alex (ActiveWidgets)
November 28,
Alex,

The following example will reproduce the behavior. I'm using IE 6.0. Thanks.




<html>
<head>
<link type="text/css" rel="stylesheet" href="css/Styles.css" />
<!-- ActiveUI stylesheet and scripts -->
<link href="js/ActiveWidgets/runtime/styles/classic/grid.css" rel="stylesheet" type="text/css" />
<script src="js/ActiveWidgets/runtime/lib/grid.js"></script>

<title>

</title>

<!-- grid format -->
<style>
.active-controls-grid {width=780px; font: menu; border: 2px inset; background: white}
.active-scroll-top * {text-align: center!important;}
#gridTask .active-column-0 {display: none!important;}
#gridTask .active-column-1 {display: none!important;}
#gridTask .active-column-2 {width: 30px; text-align: left; vertical-align: text-bottom;}
#gridTask .active-column-3 {width: 140px; text-align: left; vertical-align: text-bottom;}
#gridTask .active-column-4 {width: 80px; text-align: left; vertical-align: text-bottom;}
#gridTask .active-column-5 {width: 65px; text-align: left; vertical-align: text-bottom;}
#gridTask .active-column-6 {width: 20px; text-align: left; vertical-align: text-bottom;}
#gridTask .active-column-7 {width: 140px; text-align: left; vertical-align: text-bottom;}
#gridTask .active-column-8 {width: 60px; text-align: left; vertical-align: text-bottom;}
#gridTask .active-column-9 {width: 90px; text-align: left; vertical-align: text-bottom;}
#gridTask .active-column-10 {width: 90px; text-align: left; vertical-align: text-bottom;}
#gridTask .active-column-11 {width: 33px; text-align: center; vertical-align: text-bottom;}
#gridTask .active-column-12 {width: 25px; text-align: center; vertical-align: text-bottom;}
</style>
</head>
<body>
<table>
<tr>
<td>
<form name="testForm" method="post">

<div id="divxmldata">
<xml id="xmldata">

<?xml version="1.0" encoding="UTF-8"?>
<Tasks><Task><TASKID>2064</TASKID><NAME>Create Draft</NAME><TASKNUMBER>1</TASKNUMBER><TASKORDER>1</TASKORDER><ORGANIZATIONPATH>[RD/CB/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>72</ASSIGNEEGROUPID><ASSIGNEEUSERID>koehlert</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE>11/30/2004</RECEIVEDATE><DUEDATE>12/01/2004</DUEDATE><COMPLETEDATE>11/30/2004</COMPLETEDATE><STATUS>Completed</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID>koehlert</ACTUALUSERID><PROXYFORUSERID/><FYI>N</FYI><APPROVALTYPE/><REMARKS/><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID> </SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID/><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Tim Koehler</ASSIGNEE><ACTUALUSER>Tim Koehler</ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>3</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>Rural Development</MISSIONSTAFFDESCRIPTION><AGENCYID>4</AGENCYID><AGENCYDESCRIPTION>Correspondence Branch</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2069</TASKID><NAME>Research Issues</NAME><TASKNUMBER>1.1</TASKNUMBER><TASKORDER>1.01</TASKORDER><ORGANIZATIONPATH>[USDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>60</ASSIGNEEGROUPID><ASSIGNEEUSERID/><ASSIGNEETYPE>Group</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE>11/30/2004</RECEIVEDATE><DUEDATE>12/07/2004</DUEDATE><COMPLETEDATE>11/30/2004</COMPLETEDATE><STATUS>Completed</STATUS><DAYSTOCOMPLETE>5</DAYSTOCOMPLETE><ACTUALUSERID>koehlert</ACTUALUSERID><PROXYFORUSERID/><FYI>N</FYI><APPROVALTYPE/><REMARKS/><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>koehlert</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>60</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Main Group</ASSIGNEE><ACTUALUSER>Tim Koehler</ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>1</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>USDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2079</TASKID><NAME>Research Issues</NAME><TASKNUMBER>1.1.1</TASKNUMBER><TASKORDER>1.0101</TASKORDER><ORGANIZATIONPATH>[FDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>540</ASSIGNEEGROUPID><ASSIGNEEUSERID>Admin</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE>11/30/2004</RECEIVEDATE><DUEDATE>12/07/2004</DUEDATE><COMPLETEDATE/><STATUS>Started</STATUS><DAYSTOCOMPLETE>5</DAYSTOCOMPLETE><ACTUALUSERID>Admin</ACTUALUSERID><PROXYFORUSERID> </PROXYFORUSERID><FYI>N</FYI><APPROVALTYPE/><REMARKS> </REMARKS><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>koehlert</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>60</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Joe Administrator</ASSIGNEE><ACTUALUSER>Joe Administrator</ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>66</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>FDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2082</TASKID><NAME>test</NAME><TASKNUMBER>1.1.1.1</TASKNUMBER><TASKORDER>1.010101</TASKORDER><ORGANIZATIONPATH>[FDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>540</ASSIGNEEGROUPID><ASSIGNEEUSERID>Admin</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/01/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID/><PROXYFORUSERID/><FYI>N</FYI><APPROVALTYPE/><REMARKS/><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>Admin</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>540</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Joe Administrator</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>66</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>FDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>Admin</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2083</TASKID><NAME>test</NAME><TASKNUMBER>1.1.1.2</TASKNUMBER><TASKORDER>1.010102</TASKORDER><ORGANIZATIONPATH>[FDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>540</ASSIGNEEGROUPID><ASSIGNEEUSERID>Admin</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/02/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID/><PROXYFORUSERID/><FYI>N</FYI><APPROVALTYPE/><REMARKS/><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>Admin</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>540</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Joe Administrator</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>66</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>FDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>Admin</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2084</TASKID><NAME>Subflow Return</NAME><TASKNUMBER>1.1.1.3</TASKNUMBER><TASKORDER>1.010103</TASKORDER><ORGANIZATIONPATH>[FDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>540</ASSIGNEEGROUPID><ASSIGNEEUSERID>Admin</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/08/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID/><PROXYFORUSERID/><FYI>N</FYI><APPROVALTYPE/><REMARKS/><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>Admin</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>540</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Joe Administrator</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>66</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>FDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>Admin</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2085</TASKID><NAME>Create Draft</NAME><TASKNUMBER>1.1.2</TASKNUMBER><TASKORDER>1.0102</TASKORDER><ORGANIZATIONPATH>[USDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>60</ASSIGNEEGROUPID><ASSIGNEEUSERID>koehlert</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/09/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID> </ACTUALUSERID><PROXYFORUSERID> </PROXYFORUSERID><FYI>N</FYI><APPROVALTYPE/><REMARKS> </REMARKS><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>koehlert</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>60</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Tim Koehler</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>1</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>USDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2086</TASKID><NAME>Create Draft</NAME><TASKNUMBER>1.1.3</TASKNUMBER><TASKORDER>1.0103</TASKORDER><ORGANIZATIONPATH>[USDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>60</ASSIGNEEGROUPID><ASSIGNEEUSERID>koehlert</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/10/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID/><PROXYFORUSERID/><FYI>N</FYI><APPROVALTYPE/><REMARKS/><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>koehlert</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>60</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Tim Koehler</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>1</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>USDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2087</TASKID><NAME>Subflow Return</NAME><TASKNUMBER>1.1.4</TASKNUMBER><TASKORDER>1.0104</TASKORDER><ORGANIZATIONPATH>[USDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>60</ASSIGNEEGROUPID><ASSIGNEEUSERID>koehlert</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/07/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID/><PROXYFORUSERID/><FYI>N</FYI><APPROVALTYPE/><REMARKS/><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>koehlert</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>60</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Tim Koehler</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>1</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>USDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>Admin</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2070</TASKID><NAME>Create Draft</NAME><TASKNUMBER>1.2</TASKNUMBER><TASKORDER>1.02</TASKORDER><ORGANIZATIONPATH>[USDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>60</ASSIGNEEGROUPID><ASSIGNEEUSERID>koehlert</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/09/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID> </ACTUALUSERID><PROXYFORUSERID> </PROXYFORUSERID><FYI>N</FYI><APPROVALTYPE/><REMARKS> </REMARKS><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>koehlert</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>60</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Tim Koehler</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>1</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>USDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2071</TASKID><NAME>Subflow Return</NAME><TASKNUMBER>1.3</TASKNUMBER><TASKORDER>1.03</TASKORDER><ORGANIZATIONPATH>[USDA/NONE/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>60</ASSIGNEEGROUPID><ASSIGNEEUSERID>koehlert</ASSIGNEEUSERID><ASSIGNEETYPE>User</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/01/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID/><PROXYFORUSERID/><FYI>N</FYI><APPROVALTYPE/><REMARKS/><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID>koehlert</SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID>60</SUBFLOWCREATEGROUPID><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Tim Koehler</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>1</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>USDA</MISSIONSTAFFDESCRIPTION><AGENCYID>0</AGENCYID><AGENCYDESCRIPTION>None</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>Admin</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2075</TASKID><NAME>Review Draft</NAME><TASKNUMBER>2</TASKNUMBER><TASKORDER>2</TASKORDER><ORGANIZATIONPATH>[RD/CB/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>72</ASSIGNEEGROUPID><ASSIGNEEUSERID/><ASSIGNEETYPE>Group</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/10/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID> </ACTUALUSERID><PROXYFORUSERID> </PROXYFORUSERID><FYI>N</FYI><APPROVALTYPE/><REMARKS> </REMARKS><NOTIFYONCOMPLETION>Y</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID> </SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID/><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Main Group</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>3</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>Rural Development</MISSIONSTAFFDESCRIPTION><AGENCYID>4</AGENCYID><AGENCYDESCRIPTION>Correspondence Branch</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2076</TASKID><NAME>Review Final</NAME><TASKNUMBER>3</TASKNUMBER><TASKORDER>3</TASKORDER><ORGANIZATIONPATH>[RD/RHS/MFHCP]Main Group</ORGANIZATIONPATH><ASSIGNEEGROUPID>79</ASSIGNEEGROUPID><ASSIGNEEUSERID/><ASSIGNEETYPE>Group</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/13/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID> </ACTUALUSERID><PROXYFORUSERID> </PROXYFORUSERID><FYI>N</FYI><APPROVALTYPE/><REMARKS> </REMARKS><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID> </SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID/><FNQUEUENAME/><STEPTYPE>Parallel</STEPTYPE><ASSIGNEE>Correspondence Control Officer</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Correspondence Control Officer</ASSIGNEEGROUPNAME><MISSIONSTAFFID>3</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>Rural Development</MISSIONSTAFFDESCRIPTION><AGENCYID>5</AGENCYID><AGENCYDESCRIPTION>Rural Housing Service</AGENCYDESCRIPTION><DIVISIONID>2</DIVISIONID><DIVISIONDESCRIPTION>Multi-Family Housing/Community Programs</DIVISIONDESCRIPTION><STARTNEXT>All</STARTNEXT><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2077</TASKID><NAME>Review Final</NAME><TASKNUMBER>3</TASKNUMBER><TASKORDER>4</TASKORDER><ORGANIZATIONPATH>[RD/CB/NONE]Main Group</ORGANIZATIONPATH><ASSIGNEEGROUPID>73</ASSIGNEEGROUPID><ASSIGNEEUSERID/><ASSIGNEETYPE>Group</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/13/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>1</DAYSTOCOMPLETE><ACTUALUSERID> </ACTUALUSERID><PROXYFORUSERID> </PROXYFORUSERID><FYI>N</FYI><APPROVALTYPE/><REMARKS> </REMARKS><NOTIFYONCOMPLETION>Y</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID> </SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID/><FNQUEUENAME/><STEPTYPE>Parallel</STEPTYPE><ASSIGNEE>Correspondence Control Officer</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Correspondence Control Officer</ASSIGNEEGROUPNAME><MISSIONSTAFFID>3</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>Rural Development</MISSIONSTAFFDESCRIPTION><AGENCYID>4</AGENCYID><AGENCYDESCRIPTION>Correspondence Branch</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT>All</STARTNEXT><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task><Task><TASKID>2078</TASKID><NAME>Prepare Final</NAME><TASKNUMBER>4</TASKNUMBER><TASKORDER>5</TASKORDER><ORGANIZATIONPATH>[RD/CB/NONE]</ORGANIZATIONPATH><ASSIGNEEGROUPID>72</ASSIGNEEGROUPID><ASSIGNEEUSERID/><ASSIGNEETYPE>Group</ASSIGNEETYPE><ALIAS> </ALIAS><RECEIVEDATE/><DUEDATE>12/15/2004</DUEDATE><COMPLETEDATE/><STATUS>Not Started</STATUS><DAYSTOCOMPLETE>2</DAYSTOCOMPLETE><ACTUALUSERID> </ACTUALUSERID><PROXYFORUSERID> </PROXYFORUSERID><FYI>N</FYI><APPROVALTYPE/><REMARKS> </REMARKS><NOTIFYONCOMPLETION>N</NOTIFYONCOMPLETION><SUBFLOWCREATEUSERID> </SUBFLOWCREATEUSERID><SUBFLOWCREATEGROUPID/><FNQUEUENAME/><STEPTYPE>Standard</STEPTYPE><ASSIGNEE>Main Group</ASSIGNEE><ACTUALUSER> </ACTUALUSER><ASSIGNEEGROUPNAME>Main Group</ASSIGNEEGROUPNAME><MISSIONSTAFFID>3</MISSIONSTAFFID><MISSIONSTAFFDESCRIPTION>Rural Development</MISSIONSTAFFDESCRIPTION><AGENCYID>4</AGENCYID><AGENCYDESCRIPTION>Correspondence Branch</AGENCYDESCRIPTION><DIVISIONID>0</DIVISIONID><DIVISIONDESCRIPTION>None</DIVISIONDESCRIPTION><STARTNEXT/><APPROVALTYPEIMAGE/><APPROVALREQ>N</APPROVALREQ><CREATEUSERID>koehlert</CREATEUSERID><PROXYFORUSER> </PROXYFORUSER></Task></Tasks>

</xml>
</div>

<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>


</td>
</tr>
<tr>
<td>

<!--workflow editor section-->
<table height=250 cellspacing=2 cellpadding=1 width=100% border=0 style="border: solid 1px #000000 #000000 #000000 #000000;">
<tr>
<td valign=top width="96%" height=289>
<table id=Table1 cellspacing=1 cellpadding=1 width="100%" border=0 height="168">
<tr>

<tr>
<td>
<div id="grid" style="height: 200px; margin: .2em;">
<script>

function taskSelected() {
alert("a task was selected.");
}

function showXML() {
//var xmlText = document.getElementById("xmldata").innerHtml;
prompt("Tasks XML", xml.xml);
}

// create ActiveWidgets data model - XML-based table
var table = new Active.XML.Table;
// get reference to the xml data island node
var xml;
var node = document.getElementById("xmldata");

xml = node;

// provide data XML
var cols = ["TASKID","STEPTYPE","TASKNUMBER","NAME","RECEIVEDATE","DUEDATE","ALIAS","ASSIGNEE","STATUS", "COMPLETEDATE", "ACTUALUSER", "APPROVALTYPEIMAGE", "FYI"];
table.setColumns(cols);
table.setXML(xml);

// create ActiveWidgets Grid javascript object
var taskGrid = new Active.Controls.Grid;
taskGrid.setId("gridTask");

// define column labels
var columns = ["TaskID", "StepType", "#", "Task", "Date Received", "Due Date", "A", "Assignee", "Status", "Date Completed", "Actual User", "Appr", "FYI"];
taskGrid.setColumnProperty("texts", columns);

// provide external model as a grid data source
taskGrid.setDataModel(table);

taskGrid.setRowHeaderWidth("0px");
taskGrid.getTemplate("top/item").setEvent("onmousedown", null);
taskGrid.setEvent("oncontextmenu", showXML);
taskGrid.setAction("selectionChanged", taskSelected);

// write grid html to the page
document.write(taskGrid);

</script>
</div>
</td>
</tr>

</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

</form>
</td>
</tr>
</table>
</body>
</html>


Tim Koehler
December 1,
Tim,

thanks a lot for the example - I can replicate the problem. It can be fixed by adding "oveflow:hidden" to the grid parent div:

<div id="grid" style="height: 200px; margin: .2em; overflow: hidden">
<script>
...

If you keep the default setting for the grid width (100%) you have to explicitly set the width of the parent element - otherwise it goes to the loop trying to adjust its width and scroll size, while the parent size also changes back and forth.

Alex (ActiveWidgets)
December 1,

This topic is archived.

See also:


Back to support forum