Resize row header column width by dragging
Hi,
Is it possible to change the width of the row header column by dragging the column header (corner)? I've created a custom row header column that shows my first column of data and would like to be able to resize this column by dragging, like the other columns in the grid.
I created my row header and corner from the instructions that Alex gave in this post:
http://www.activewidgets.com/javascript.forum.1083.4/sort-on-row-header-field.html
In his post was the following block of code:
I tried to remove the last two statements, but I still can't grab the corner and resize the row header column.
Thanks,
Is it possible to change the width of the row header column by dragging the column header (corner)? I've created a custom row header column that shows my first column of data and would like to be able to resize this column by dragging, like the other columns in the grid.
I created my row header and corner from the instructions that Alex gave in this post:
http://www.activewidgets.com/javascript.forum.1083.4/sort-on-row-header-field.html
In his post was the following block of code:
// define template for the first column header
obj.defineTemplate("corner", new Active.Templates.Header);
// assign this template as the content of top left corner
obj.getLayoutTemplate().setContent("corner", function(){return this.getCornerTemplate(0)});
// adjust header template
var corner = obj.getCornerTemplate();
// redirect item property requests to column property
corner.getItemProperty = function(name){return this.getColumnProperty(name, 0)};
// disable resizing
corner.getContent("div").setEvent("onmousedown", null);
corner.getContent("div").setStyle("cursor", "default");
I tried to remove the last two statements, but I still can't grab the corner and resize the row header column.
Thanks,
Otto
March 7,