Hi Jim,
We've got too much sample code, from all the ways we've been trying to get
at it!
Yep, tried the onwidth event - problem with that is that it seems to fire
repeatedly with EVERY slight movement of the mouse :-( No way to tell when
it's finished being moved.
The main frustration is none of the onMouseXXX events seem to work. This
should be really easy, but seems like mutliple people on the forums have
been having similar problems at least for a year now.
Any more ideas?
cheers,
David
|---------+---------------------------->
| | Jim Grandy |
| | <[EMAIL PROTECTED]|
| | lo.org> |
| | |
| | 05/10/2006 01:03 |
| | PM |
| | |
|---------+---------------------------->
>-----------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc: [email protected]
|
| Subject: Re: [Laszlo-dev] Grid events don't work - workaround?
|
>-----------------------------------------------------------------------------------------------------------------|
Hi David,
Sample code is always useful to diagnose any problem, but have you
tried watching the onwidth event for the columns? You might do that
by subclassing the basegridcolumn class you are using (most likely
gridtext) and adding an onwidth handler for that class. Give your
custom class name as the value of the _columnclass basegrid
attribute, and it should be automatically instantiated for you.
(Note that _columnclass is a private attribute of basegrid. It should
arguably be a public attribute so that you can do exactly this sort
of customization.)
Please let us know how this works!
jim
On May 10, 2006, at 9:47 AM, [EMAIL PROTECTED] wrote:
> Hi,
>
> We have an urgent need to be able to save the widths of the grid
> columns
> (that users change) and persist it in a cookie.
>
> The latter part seems to be fine, but we are unable to find a way of
> capturing the event to when the user stops moving a column, to get and
> persist its width.
>
> I'm guessing the fact that the mouse events don't seem to work are
> known
> bugs?
>
> Does anyone know of any workarounds as we are hitting a brick wall.
>
> cheers,
>
> David
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev