[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Drag&Drop of GridCol headers  XML
Forum Index -> Development
Author Message
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5518
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
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5518
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
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team