Author |
Message |
19/12/2012 10:04:11
|
hilka
Power User
Joined: 23/11/2007 09:00:08
Messages: 191
Offline
|
Hi Captain,
FixGrids have the general feature to support drag&drop of grid headers to change the sequence of the columns. This happens on client side and the information about the columnSequence is transferred to the server with the next roundtrip.
We want to make a search grid configurable to the user using an almost WYSIWYG administration page. The user can select a field from a list of fields and drop it onto the grid and the new column is rendered. No problem so far, even the column sequence can be extracted and persisted in our database.
For the search fields, which are also part of the search configuration we remove fields by dropping them from the WYSIWYG part onto the original list of fields.
Is there a way to have the same behaviour for GridCols (drag&drop that goes to the server)?
Tobias
|
|
|
19/12/2012 10:16:34
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5534
Offline
|
Hi Tobias,
@" The user can select a field from a list of fields and drop it onto the grid and the new column is rendered. No problem so far, even the column sequence can be extracted and persisted in our database. ":
How do you do this at the moment - by assigning DROPRECEIVE to the FIXGRID and the appending the field to the exising columns?
In general: the drag/drop of header cells internally is also using DRAGSEND/DROPRECEIVE - with the difference that the corresponding events are handled internally. And: the ids exchanged via DRAGSEND/DROPRECEIVE are internally created (so that they are only valid within one grid instance). So I am a bit sceptical, that even when publishing these events there is a high chance, that you cannot work with these events at all...
What's about adding an extra icon in the gridcol, like:
GRIDCOL
LABEL (or whatever you have)
ICON
THis icon is shown in the header cell. For this icon you can define any DRAGSEND/DROPRECEIVE information on your own and you could use this for dragging the icon into some "removal area".
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
19/12/2012 10:28:26
|
hilka
Power User
Joined: 23/11/2007 09:00:08
Messages: 191
Offline
|
Hi Björn,
I thought of the solution with the extra icon in the header too.
But the problem is that we have the drag&drop logic for removing search fields but we will have a "click-icon-in-header" solution for grid columns.
I will check if we do not use the drag&drop solution for removing fields at all.
Thanks,
Tobias
|
|
|
19/12/2012 10:53:25
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5534
Offline
|
...I meant: you could realize drag&drop on this special icon/image/...
Regards, Björn
How do you do this...:
@" The user can select a field from a list of fields and drop it onto the grid and the new column is rendered. No problem so far, even the column sequence can be extracted and persisted in our database. ":
How do you do this at the moment - by assigning DROPRECEIVE to the FIXGRID and the appending the field to the exising columns?
|
Björn Müller, CaptainCasa GmbH |
|
|
|