[gradebook2-dev] Refreshing column headers

Jim Eng jimeng at umich.edu
Tue Nov 2 14:06:56 PDT 2010


I made some screenshots to make clearer what I'm asking.  First here's the UI showing the "Show Weighted" button next to the search form in the grid tool bar:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gb2-points.png
Type: image/png
Size: 87631 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/gradebook2-dev/attachments/20101102/6614caff/attachment-0004.png 
-------------- next part --------------



Notice that the column header for HW1 says "HW1 [10 pts]".  When I click the "Show Weighted" button, the cells in the grid get updated, but the column headers do not, as shown by the next screen shot:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gb2-percent.png
Type: image/png
Size: 101178 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/gradebook2-dev/attachments/20101102/6614caff/attachment-0005.png 
-------------- next part --------------


Notice that the column header for HW1 still says "HW1 [10 pts]".  I can get the column headers to change by editing any item (by double clicking the title in the left panel and then clicking the "Save/Close" button in the edit dialog).  The column headers will then get updated, as shown in the next screen shot:

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gb2-percent-updated.png
Type: image/png
Size: 99731 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/gradebook2-dev/attachments/20101102/6614caff/attachment-0006.png 
-------------- next part --------------


Notice that the column header for HW1 now says "HW1 [4%]". If we click the "Show Weighted" button again, the cells get updated correctly but the column headers do not get updated:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gb2-points-updated.png
Type: image/png
Size: 99105 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/gradebook2-dev/attachments/20101102/6614caff/attachment-0007.png 
-------------- next part --------------


What we'd like is for clicking the "Show Weighted" button to update both the cells in the grid *AND* the column headers.  

Any suggestions about how to trigger that?  

BTW, the branch we are working in is based on the 1.3.0 tag.

Thanks.

Jim



On Nov 2, 2010, at 4:27 PM, Jim Eng wrote:

> My question is in the context of clicking the "Show Weighted" button. David added this button.  When I click the button, the cells in the grid change and display percentages instead of points, but the column headers still show points. I I am in the "Show Weighted" mode, edit an item and save the item, the column headers get refreshed.  But then they stay that way until something happens that changes them back.  We'd like that change to occur whenever you click the "Show Weighted" button.  We'd appreciate any suggestions.
> 
> Thanks.
> 
> Jim
> 
> 
> 
> 
> On Nov 2, 2010, at 4:16 PM, Jim Eng wrote:
> 
>> Hi,
>> 
>> Our work on GRBK-483 is almost complete (mostly David's work, actually).  I am trying to finish up one detail.  David has added code to provide new labels for the columns to show the values as a percentage of the semester total, but we are still having trouble getting the column header row to update.  Can you suggest how we might do that? 
>> 
>> Thanks.
>> 
>> Jim
>> _______________________________________________
>> gradebook2-dev mailing list
>> gradebook2-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/gradebook2-dev
>> 
>> 
> 
> 
> 



More information about the gradebook2-dev mailing list