:: Forum >> Version 1 >>

Resize event and new column width

Hi,

I want to intercept the resize event for a column (when a user changes the column width) and get the new width value.
(to keep the new width with a refresh)
Is it possible to do it ?

It seems it's possible to get the new width value with the stylesheet as follow:
var ss = document.styleSheets[document.styleSheets.length-1];
ss.rules[index_of_rule_column_width].style.width

But i don't know how intercept the resize event.

Thanks a lot
JN Jobin
Thursday, July 1, 2004
Hi,
I want to set the data in particular column of the Excel sheet.while clicking an button in an .asp file an excel sheet should be generated and data shold be displayed in particular column.
My question is how to set that data in that column?

Thanks & Regards
Krishna
Data display in particular column of Excel sheet
Thursday, July 8, 2004
Hi,

regarding the resize event, I had to change the original code in the file controls/grid.js line 196 in an older version (or the runtime/activeui.js) and to fire an additional event with code something like this:

var customEventObj = new Function();
customEventObj.index = header.getItemProperty("index");
customEventObj.width = width;
grid.action("onColumnResize", customEventObj)


This way you can then attach your code outside the grid component on this custom event and do what you want.

Of course this is not an elegant solution to change the original code from Alex. I would appreciate if Alex could fire this event without my modification to his code.

Or maybe I should read some more postings, perhaps is this issue already solved...

Ladi
Thursday, July 15, 2004



This topic is archived.

Back to support forum

Forum search