[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
RowDropReceive can not be disabled  XML
Forum Index -> Development
Author Message
hilka

Power User

Joined: 23/11/2007 09:00:08
Messages: 191
Offline

Hello there,

I have a grid with some dropreceive definition for the complete grid, as well as some rowdropreceive and rowdragsend definition for the rows. Example:
dropreceive=#{d.myBean.dropReceive}
rowdropreceive=#{d.myBean.dropReceive}
rowdragsend=#{d.myBean.dragsEnd}

I wanted to disable drag and drop in case the grid is in "disabled mode". Therefore I use server side properties which check if the grid should be in disabled mode:
public String getDropReceive() { return getVo().getEditable() ? "task" : null; }
public String getDragsEnd() { return getVo().getEditable() ? "task:row" : null; }

This works perfectly well for the blank spaces in the grid, but I could still drop elements on the grid items.

Is it possible that disabling this drag&drop does not work for the row elements?

Tobias
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,

I think, this makes sense...: the enabled-management is on grid-level, the rowdropreceive-managemnent as well. So it's consistent with the normal drag-drop which is also disabled when the component is disabled.

Will do so for next update.

Thanks + regards!
Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team